<?xml version="1.0"?>
<QuestionForm xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionForm.xsd">
    <Overview>
	<Title>
#if(${predtype} == "category")
        Identify items that are examples of the category '${predname}'
#else
        Identify pairs of items that are examples of the relation '${predname}'
#end
</Title>

#if(${predtype} == "category")
		<FormattedContent><![CDATA[
        <h2>Category Definition: An item X is an example of the category '${predname}' if X ${desc1}</h2>
		]]></FormattedContent>
#if(${desc2}!="")
		<FormattedContent><![CDATA[<a href='${desc2}' target='_blank'>${desc2}</a>]]></FormattedContent>
#end
#else
		<FormattedContent><![CDATA[
        <h2>Relation Definition: A pair of items, (X,Y), is an example of the relation '${predname}' only if <b>all</b> of the following are true:</h2>
		<ol>
		<li> X ${desc1}</li>
		<li> Y ${desc3}</li>
		<li> ${desc5}</li>
		</ol>
		]]></FormattedContent>
#if(${desc2} != "" || ${desc4} != "" || ${desc6} != "")
		<FormattedContent><![CDATA[<i>[*] indicates definitional text taken in part from Wikipedia: ${desc2} ${desc4} ${desc6}</i> ]]></FormattedContent>
#end
#end

		<FormattedContent><![CDATA[
		<h2>Instructions</h2>
		]]></FormattedContent>
#if(${predtype} == "category")
		<List>
			<ListItem>Carefully read the definition of the category to make sure you understand it.  Work will be checked for accuracy and adherence to the definition.</ListItem>
			<ListItem>If an item was previously, at any time in the past, an example of the category, you should answer 'Yes'. For example, 'East Germany' is a valid example of a 'Country' because it was once a country.</ListItem>
			<ListItem>If you do not know the correct answer, please research it online by clicking on the provided link to a Google search.</ListItem>
			<ListItem>Please ignore uppercase vs. lowercase-- all items are in lowercase.</ListItem>
		</List>
#else
		<List>
			<ListItem>Carefully read the definition of the relation to make sure you understand it.  Work will be checked for accuracy and adherence to the definition.</ListItem>
			<ListItem>If a pair of items were previously, at any time in the past, an example of the relation, you should answer 'Yes'.  For example, ('michael jordan','basketball') is a valid example of the 'Athlete Plays Sport' relation because Michael Jordan used to play basketball.</ListItem>
			<ListItem>If you do not know the correct answer, please quickly research it online by clicking on the provided link to a Google search for that pair of items and the relation name.</ListItem>
			<ListItem>Please ignore uppercase vs. lowercase-- all items are in lowercase.</ListItem>
		</List>
#end
    </Overview>

    #set( $items = [ ${c1}, ${c2}, ${c3}, ${c4}, ${c5}, ${c6}, ${c7}, ${c8}, ${c9}, ${c10}, ${c11}, ${c12}, ${c13}, ${c14}, ${c15} ] )
    #set($j = 1)
    #foreach( $i in $items)
	#if($i != "")
    <Question>
		<QuestionIdentifier>$j</QuestionIdentifier>
		<IsRequired>true</IsRequired>
#set ($j = $j + 1)
        <QuestionContent>
#if(${predtype} == "category")
		<FormattedContent><![CDATA[Candidate Item: <b>$i</b>  
		<a href="http://www.google.com/search?q=$i%20${predname}" target="_blank">Click for a Google search for $i ${predname}</a>]]></FormattedContent>
#else
		<FormattedContent><![CDATA[Candidate Pair of Items: <b>$i</b>  
		<a href="http://www.google.com/search?q=$i%20${predname}" target="_blank">Click for a Google search for $i ${predname}</a>]]></FormattedContent>
#end
	    </QuestionContent>

        <AnswerSpecification>
        <SelectionAnswer>
          <MinSelectionCount>1</MinSelectionCount>
          <MaxSelectionCount>1</MaxSelectionCount>
          <StyleSuggestion>radiobutton</StyleSuggestion>
          <Selections>
                <Selection>
                  <SelectionIdentifier>true.${predicate}.$i</SelectionIdentifier>
				  <Text>
#if(${predtype} == "category")
                  Yes, '$i' is an example of the category '${predname}'
#else 
                  Yes, $i is an example of the relation '${predname}'
#end
				  </Text>
                </Selection>
                <Selection>
                  <SelectionIdentifier>false.${predicate}.$i</SelectionIdentifier>
                  <Text>No</Text>
                </Selection>
          </Selections>
        </SelectionAnswer>
        </AnswerSpecification>
    </Question>
    #end
    #end
</QuestionForm>
