Simple Question (Direct)
Simple Question
Q744249
P20
Q56061
USER
Where did Viljo Heino die ?
(Q744249,P20,c(Q56061))
action filter_type
action find
entity Q744249
relation P20
type Q56061
['Q744249', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q744249 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Viljo Heino
action filter_type
action find
entity Viljo Heino
relation place of death
type administrative territorial entity
['Viljo Heino', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Viljo_Heino property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q40840
SYSTEM
Tampere
Q40840
(Q744249,P20,c(Q56061))
action filter_type
action find
entity Q744249
relation P20
type Q56061
Viljo Heino died in [ANSWER]
['Q744249', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q744249 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Tampere
Viljo Heino died in Tampere
Tampere
action filter_type
action find
entity Viljo Heino
relation place of death
type administrative territorial entity
['Viljo Heino', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Viljo_Heino property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q744249
P21
Q290
USER
What is the sex of Viljo Heino ?
(Q744249,P21,c(Q290))
action filter_type
action find
entity Q744249
relation P21
type Q290
['Q744249', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q744249 property:P21 ?q }
Viljo Heino
action filter_type
action find
entity Viljo Heino
relation gender
type sex
['Viljo Heino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Viljo_Heino property:gender ?q }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q744249,P21,c(Q290))
action filter_type
action find
entity Q744249
relation P21
type Q290
The sex of Viljo Heino is the [ANSWER]
['Q744249', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q744249 property:P21 ?q }
male
The sex of Viljo Heino is the male
male
action filter_type
action find
entity Viljo Heino
relation gender
type sex
['Viljo Heino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Viljo_Heino property:gender ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q744249
P641
Q31629
USER
Which type of sport did that person participate in ?
(Q6581097,P641,c(Q31629))
action filter_type
action find
entity Q744249
relation P641
type Q31629
['Q6581097', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q31629 . resource:Q744249 property:P641 ?r }
Viljo Heino
action filter_type
action find
entity Viljo Heino
relation sport
type type of sport
['male', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_sport . resource:Viljo_Heino property:sport ?r }
[]
type of sport
Q542
SYSTEM
athletics
Q542
(Q6581097,P641,c(Q31629))
action filter_type
action find
entity Q744249
relation P641
type Q31629
That person participated in [ANSWER]
['Q6581097', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q31629 . resource:Q744249 property:P641 ?r }
athletics
That person participated in athletics
athletics
action filter_type
action find
entity Viljo Heino
relation sport
type type of sport
['male', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_sport . resource:Viljo_Heino property:sport ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q542 Q18025241
P641
Q502895
USER
Is Martin Block known to play that type of sport ?
(Q18025241,P641,Q542)
action is_in
entity Q542
action find
entity Q18025241
relation P641
['Q18025241', 'P641', 'Q542']
ASK WHERE { resource:Q18025241 property:P641 resource:Q542 }
athletics Martin Block
action is_in
entity athletics
action find
entity Martin Block
relation sport
['Martin Block', 'sport', 'athletics']
ASK WHERE { resource:Martin_Block property:sport resource:athletics }
[]
common name
SYSTEM
YES
(Q18025241,P641,Q542)
action is_in
entity Q542
action find
entity Q18025241
relation P641
[ANSWER]
['Q18025241', 'P641', 'Q542']
ASK WHERE { resource:Q18025241 property:P641 resource:Q542 }
Yes
action is_in
entity athletics
action find
entity Martin Block
relation sport
['Martin Block', 'sport', 'athletics']
ASK WHERE { resource:Martin_Block property:sport resource:athletics }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q744249 Q81959 Q33
P27
Q15617994
USER
Is Viljo Heino a native of Plankstadt and Finland ?
(Q744249,P27,Q81959) (Q744249,P27,Q33)
action is_in
entity Q744249
action intersection
action find_reverse
entity Q81959
relation P27
action find_reverse
entity Q33
relation P27
['Q744249', 'P27', 'Q81959'] ['Q744249', 'P27', 'Q33']
ASK WHERE { resource:Q744249 property:P27 resource:Q81959 . resource:Q744249 property:P27 resource:Q33 }
Viljo Heino Plankstadt Finland
action is_in
entity Viljo Heino
action intersection
action find_reverse
entity Plankstadt
relation country of citizenship
action find_reverse
entity Finland
relation country of citizenship
['Viljo Heino', 'country of citizenship', 'Plankstadt'] ['Viljo Heino', 'country of citizenship', 'Finland']
ASK WHERE { resource:Viljo_Heino property:country_of_citizenship resource:Plankstadt . resource:Viljo_Heino property:country_of_citizenship resource:Finland }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q744249,P27,Q81959) (Q744249,P27,Q33)
action is_in
entity Q744249
action intersection
action find_reverse
entity Q81959
relation P27
action find_reverse
entity Q33
relation P27
[ANSWER]
['Q744249', 'P27', 'Q81959'] ['Q744249', 'P27', 'Q33']
ASK WHERE { resource:Q744249 property:P27 resource:Q81959 . resource:Q744249 property:P27 resource:Q33 }
NO and YES respectively
action is_in
entity Viljo Heino
action intersection
action find_reverse
entity Plankstadt
relation country of citizenship
action find_reverse
entity Finland
relation country of citizenship
['Viljo Heino', 'country of citizenship', 'Plankstadt'] ['Viljo Heino', 'country of citizenship', 'Finland']
ASK WHERE { resource:Viljo_Heino property:country_of_citizenship resource:Plankstadt . resource:Viljo_Heino property:country_of_citizenship resource:Finland }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q31629 Q12973014 Q13406554
USER
Which types of sport did exactly 4 sports teams and sport competitions participate in ?
(c(Q12973014)|c(Q13406554),P641,c(Q31629))
action equal
action union
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q31629
type Q13406554
value 4
[[{'concept': 'Q12973014'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?p ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:Q12973014 ) ( ontology:Q13406554 ) } } GROUP BY ?j } . FILTER ( ?p = 4 ) }
action equal
action union
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action find_reverse_tuple_counts
relation sport
type type of sport
type sport competition
value 4
[[{'concept': 'sports team'}, {'concept': 'sport competition'}], 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?p ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:sports_team ) ( ontology:sport_competition ) } } GROUP BY ?j } . FILTER ( ?p = 4 ) }
[]
type of sport sports team sport competition
Q32485 Q179687
SYSTEM
modern pentathlon, cross-country skiing
Q32485 Q179687
(c(Q12973014)|c(Q13406554),P641,c(Q31629))
action equal
action union
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q31629
type Q13406554
value 4
And [ANSWERS] exactly 4 sports teams and sport competitions participated in
[[{'concept': 'Q12973014'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?p ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:Q12973014 ) ( ontology:Q13406554 ) } } GROUP BY ?j } . FILTER ( ?p = 4 ) }
modern pentathlon cross-country skiing
And modern pentathlon and cross-country skiing exactly 4 sports teams and sport competitions participated in
modern pentathlon cross-country skiing
action equal
action union
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action find_reverse_tuple_counts
relation sport
type type of sport
type sport competition
value 4
[[{'concept': 'sports team'}, {'concept': 'sport competition'}], 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?p ) WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:sports_team ) ( ontology:sport_competition ) } } GROUP BY ?j } . FILTER ( ?p = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1317679 Q744249
P27
Q15617994
USER
Which administrative territories are the native countriesof Viljo Heino or Piero Baroncini ?
OR((Q744249,P27,c(Q15617994)), (Q1317679,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q744249
relation P27
action find
entity Q1317679
relation P27
type Q15617994
{'OR': [['Q744249', 'P27', {'concept': 'Q15617994'}], ['Q1317679', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?f property:P27 ?n . VALUES ( ?f ) { ( resource:Q744249 ) ( resource:Q1317679 ) } } . ?n rdf:type ontology:Q15617994 }
Piero Baroncini Viljo Heino
action filter_type
action union
action find
entity Viljo Heino
relation country of citizenship
action find
entity Piero Baroncini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Viljo Heino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Piero Baroncini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?f property:country_of_citizenship ?n . VALUES ( ?f ) { ( resource:Viljo_Heino ) ( resource:Piero_Baroncini ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q38
SYSTEM
Finland, Italy
Q33 Q38
OR((Q744249,P27,c(Q15617994)), (Q1317679,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q744249
relation P27
action find
entity Q1317679
relation P27
type Q15617994
[ANSWERS] are the native countriesof Viljo Heino or Piero Baroncini
{'OR': [['Q744249', 'P27', {'concept': 'Q15617994'}], ['Q1317679', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?f property:P27 ?n . VALUES ( ?f ) { ( resource:Q744249 ) ( resource:Q1317679 ) } } . ?n rdf:type ontology:Q15617994 }
Finland Italy
Finland and Italy are the native countriesof Viljo Heino or Piero Baroncini
Finland Italy
action filter_type
action union
action find
entity Viljo Heino
relation country of citizenship
action find
entity Piero Baroncini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Viljo Heino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Piero Baroncini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?f property:country_of_citizenship ?n . VALUES ( ?f ) { ( resource:Viljo_Heino ) ( resource:Piero_Baroncini ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1317679
P19
Q56061
USER
Where was Piero Baroncini born ?
(Q33,P19,c(Q56061)) (Q38,P19,c(Q56061))
action filter_type
action find
entity Q1317679
relation P19
type Q56061
['Q33', 'P19', {'concept': 'Q56061'}] ['Q38', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1317679 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Piero Baroncini
action filter_type
action find
entity Piero Baroncini
relation place of birth
type administrative territorial entity
['Finland', 'place of birth', {'concept': 'administrative territorial entity'}] ['Italy', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Piero_Baroncini property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2044
SYSTEM
Florence
Q2044
(Q33,P19,c(Q56061)) (Q38,P19,c(Q56061))
action filter_type
action find
entity Q1317679
relation P19
type Q56061
Piero Baroncini was born in [ANSWER]
['Q33', 'P19', {'concept': 'Q56061'}] ['Q38', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q1317679 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Florence
Piero Baroncini was born in Florence
Florence
action filter_type
action find
entity Piero Baroncini
relation place of birth
type administrative territorial entity
['Finland', 'place of birth', {'concept': 'administrative territorial entity'}] ['Italy', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Piero_Baroncini property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1317679
P106
Q12737077
USER
What does that person do for a living ?
(Q2044,P106,c(Q12737077))
action filter_type
action find
entity Q1317679
relation P106
type Q12737077
['Q2044', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1317679 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Piero Baroncini
action filter_type
action find
entity Piero Baroncini
relation occupation
type occupation
['Florence', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Piero_Baroncini property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2044,P106,c(Q12737077))
action filter_type
action find
entity Q1317679
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q2044', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1317679 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Piero Baroncini
relation occupation
type occupation
['Florence', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Piero_Baroncini property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q502895 Q2342494
USER
Which occupations do approximately the same number of people or collectables belong to as that occupation ?
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q502895
type Q2342494
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:P101 resource:Q937857 . { { ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q2342494 } } } } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?i WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:Q502895 ) ( ontology:Q2342494 ) } } GROUP BY ?i } }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:field_of_work resource:association_football_player . { { ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:collectable } } } } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?i WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:common_name ) ( ontology:collectable ) } } GROUP BY ?i } }
[]
occupation common name collectable
Q2855502 Q3621491 Q1051088
SYSTEM
chief of police, archaeologist, Commissioner of Baseball
Q6625963 Q4175034 Q177220 Q911554 Q80687 Q37226 Q652122 Q765778 Q2995983 Q627325 Q33999 Q1288557 Q14915627 Q13418253 Q1495660 Q774306 Q4853732 Q211423 Q706364 Q1231865 Q622807 Q584301 Q6138343 Q4610556 Q1259917 Q2516866 Q2259451 Q947873 Q333634 Q15949613 Q783906 Q1792450 Q11900058 Q3243461 Q5482740 Q3922505 Q1051088 Q138858 Q183888 Q593644 Q7888586 Q81096 Q170790 Q30185 Q15839135 Q1930187 Q14467526 Q6500773 Q212238 Q11642 Q937857 Q157509 Q128124 Q1999841 Q131524 Q1172458 Q2505739 Q1622272 Q653368 Q3455803 Q2707485 Q1402561 Q725440 Q2374149 Q17277248 Q2865798 Q326358 Q2599593 Q705908 Q4164507 Q2205972 Q899758 Q2855502 Q169470 Q36180 Q201788 Q15117302 Q483501 Q1114448 Q17167049 Q1423891 Q3665646 Q11063 Q1028181 Q1392297 Q901 Q1881523 Q18524075 Q1235146 Q36834 Q15995642 Q254651 Q3387717 Q354034 Q158852 Q2252262 Q245068 Q8011071 Q219477 Q1607826 Q154549 Q1709010 Q639669 Q191633 Q33231 Q2490358 Q644687 Q2732142 Q15980158 Q15954519 Q42603 Q3621491 Q11774891 Q6981670
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q502895
type Q2342494
[ANSWERS] approximately the same number of people or collectables belong to as that occupation
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:P101 resource:Q937857 . { { ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q2342494 } } } } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?i WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:Q502895 ) ( ontology:Q2342494 ) } } GROUP BY ?i } }
novelist legislator singer business magnate secretary teacher sewing organist double-bassist graphic designer actor hieromonk musicologist philologist food critic surgeon children's writer goldsmith art director educationist seiyū bassist wood carver model violinist publisher stage actor television presenter translator short story writer neurologist art historian explorer collector programmer music producer Commissioner of Baseball entertainer software developer chemist chemical engineer engineer mathematician mayor developmental biologist journalist linguist general practitioner civil servant pottery association football player legal guardian audio engineer faqih entrepreneur muhaddith hispanist university teacher district attorney director scenographer military leader prelate botanist member of the National Assembly of Armenia glass artist joiner germanist agency agreement art critic stained-glass artist violist chief of police physicist writer historian volleyball player artist cartoonist specialist in literature minister basketball player astronomer painter Train dispatcher scientist STEM fields mining engineer documentary filmmaker composer religious leader navigator theatre director type designer conductor rapper comedian animal trainer missionary editor carpenter software engineer musician mangaka photographer choreographer illustrator statistician non-fiction writer alchemist priest archaeologist ice hockey player Navajo weaving
Chief of police, archaeologist and Commissioner of Baseball approximately the same number of people or collectables belong to as that occupation
chief of police archaeologist Commissioner of Baseball
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:field_of_work resource:association_football_player . { { ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:collectable } } } } . FILTER ( ?w = ?g ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?i WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:common_name ) ( ontology:collectable ) } } GROUP BY ?i } }
[]