Simple Question (Direct)
Simple Question
Q22245695
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Basem Atallah ?
(Q22245695,P27,c(Q15617994))
action filter_type
action find
entity Q22245695
relation P27
type Q15617994
['Q22245695', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q22245695 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Basem Atallah
action filter_type
action find
entity Basem Atallah
relation country of citizenship
type designation for an administrative territorial entity
['Basem Atallah', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Basem_Atallah property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q851
SYSTEM
Saudi Arabia
Q851
(Q22245695,P27,c(Q15617994))
action filter_type
action find
entity Q22245695
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Basem Atallah
['Q22245695', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q22245695 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Saudi Arabia
Saudi Arabia is the country of citizenship of Basem Atallah
Saudi Arabia
action filter_type
action find
entity Basem Atallah
relation country of citizenship
type designation for an administrative territorial entity
['Basem Atallah', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Basem_Atallah property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22245695
P641
Q349
USER
Which sport was Basem Atallah a part of ?
(Q22245695,P641,c(Q349))
action filter_type
action find
entity Q22245695
relation P641
type Q349
['Q22245695', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q349 . resource:Q22245695 property:P641 ?k }
Basem Atallah
action filter_type
action find
entity Basem Atallah
relation sport
type sport
['Basem Atallah', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sport . resource:Basem_Atallah property:sport ?k }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q22245695,P641,c(Q349))
action filter_type
action find
entity Q22245695
relation P641
type Q349
Which sport was Basem Atallah a part of
['Q22245695', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q349 . resource:Q22245695 property:P641 ?k }
association football
Which sport was Basem Atallah a part of
association football
action filter_type
action find
entity Basem Atallah
relation sport
type sport
['Basem Atallah', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sport . resource:Basem_Atallah property:sport ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22245695
P21
Q290
USER
What is the sex of that person ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q22245695
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q22245695 property:P21 ?b . ?b rdf:type ontology:Q290 }
Basem Atallah
action filter_type
action find
entity Basem Atallah
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Basem_Atallah property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q22245695
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q22245695 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Basem Atallah
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Basem_Atallah property:gender ?b . ?b rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q7210356 Q34770
USER
How many political organizations or languages have the gender as that sex ?
(c(Q7210356),P21,Q6581097) (c(Q34770),P21,Q6581097) (c(Q7210356),P21,Q6581097) (c(Q34770),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q7210356
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q34770
[{'concept': 'Q7210356'}, 'P21', 'Q6581097'] [{'concept': 'Q34770'}, 'P21', 'Q6581097'] [{'concept': 'Q7210356'}, 'P21', 'Q6581097'] [{'concept': 'Q34770'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q7210356 } UNION { ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q34770 } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type political organization
action filter_type
action find_reverse
entity male
relation gender
type language
[{'concept': 'political organization'}, 'gender', 'male'] [{'concept': 'language'}, 'gender', 'male'] [{'concept': 'political organization'}, 'gender', 'male'] [{'concept': 'language'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:gender resource:male . ?r rdf:type ontology:political_organization } UNION { ?r property:gender resource:male . ?r rdf:type ontology:language } }
[]
political organization language
SYSTEM
2
Q278748 Q5473207
(c(Q7210356),P21,Q6581097) (c(Q34770),P21,Q6581097) (c(Q7210356),P21,Q6581097) (c(Q34770),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q7210356
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q34770
[ANSWER]
[{'concept': 'Q7210356'}, 'P21', 'Q6581097'] [{'concept': 'Q34770'}, 'P21', 'Q6581097'] [{'concept': 'Q7210356'}, 'P21', 'Q6581097'] [{'concept': 'Q34770'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q7210356 } UNION { ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q34770 } }
Charaka Forward Moving Party
2
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type political organization
action filter_type
action find_reverse
entity male
relation gender
type language
[{'concept': 'political organization'}, 'gender', 'male'] [{'concept': 'language'}, 'gender', 'male'] [{'concept': 'political organization'}, 'gender', 'male'] [{'concept': 'language'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:gender resource:male . ?r rdf:type ontology:political_organization } UNION { ?r property:gender resource:male . ?r rdf:type ontology:language } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with atleast 36 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 36
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?g ) WHERE { ?k property:P530 ?i . ?k rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?g >= 36 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 36
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?g ) WHERE { ?k property:diplomatic_relation ?i . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?g >= 36 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 36
[ANSWERS] have diplomatic relationships with atleast 36 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?g ) WHERE { ?k property:P530 ?i . ?k rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?g >= 36 ) }
Brazil Italy
Brazil and Italy have diplomatic relationships with atleast 36 administrative territories
Brazil Italy
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 36
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?g ) WHERE { ?k property:diplomatic_relation ?i . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?g >= 36 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5366113
P530
Q15617994
USER
Do Ellonby have diplomatic relations with those ones ?
(Q5366113,P530,Q155) (Q5366113,P530,Q38)
action is_in
entity prev_answer
action find
entity Q5366113
relation P530
['Q5366113', 'P530', 'Q155'] ['Q5366113', 'P530', 'Q38']
ASK WHERE { resource:Q5366113 property:P530 ?r . VALUES ( ?r ) { ( resource:Q155 ) ( resource:Q38 ) } }
Ellonby
action is_in
entity prev_answer
action find
entity Ellonby
relation diplomatic relation
['Ellonby', 'diplomatic relation', 'Brazil'] ['Ellonby', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Ellonby property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5366113,P530,Q155) (Q5366113,P530,Q38)
action is_in
entity prev_answer
action find
entity Q5366113
relation P530
[ANSWER]
['Q5366113', 'P530', 'Q155'] ['Q5366113', 'P530', 'Q38']
ASK WHERE { resource:Q5366113 property:P530 ?r . VALUES ( ?r ) { ( resource:Q155 ) ( resource:Q38 ) } }
No
action is_in
entity prev_answer
action find
entity Ellonby
relation diplomatic relation
['Ellonby', 'diplomatic relation', 'Brazil'] ['Ellonby', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Ellonby property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18577455 Q38
P710 P6
Q502895
USER
Which people are the heads of the government of Italy or participated in 1995 Iditarod ?
OR((Q38,P6,c(Q502895)), (Q18577455,P710,c(Q502895)))
action filter_type
action union
action find
entity Q38
relation P6
action find
entity Q18577455
relation P710
type Q502895
{'OR': [['Q38', 'P6', {'concept': 'Q502895'}], ['Q18577455', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q38 property:P6 ?h } UNION { resource:Q18577455 property:P710 ?h } } . ?h rdf:type ontology:Q502895 }
1995 Iditarod Italy
action filter_type
action union
action find
entity Italy
relation head of government
action find
entity 1995 Iditarod
relation participant
type common name
{'OR': [['Italy', 'head of government', {'concept': 'common name'}], ['1995 Iditarod', 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Italy property:head_of_government ?h } UNION { resource:1995_Iditarod property:participant ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q18635531 Q18635534 Q18627361 Q5300949 Q18582269 Q18635530 Q18581932 Q18581482 Q12006382 Q11978923
SYSTEM
Some of them are Art Church, Nicolas Pattaroni, Dave Branholm, Doug Swingley, Nikolay Ettyne, Randy Adkins, Wayne Curtis, Bob Bright, Tim Osmar, John Barron
Q18581394 Q5249867 Q6174253 Q18585515 Q18586944 Q18610003 Q18585898 Q18627361 Q18615742 Q18581949 Q47563 Q18635532 Q18581482 Q18585714 Q18635500 Q12006382 Q18635529 Q18635540 Q18635541 Q18635542 Q18635543 Q4586875 Q18588610 Q18607356 Q18615805 Q18601517 Q18586681 Q5300949 Q18581300 Q18627299 Q11998076 Q18587114 Q6880994 Q18585599 Q18606855 Q18635499 Q18627357 Q18635538 Q18581910 Q18635539 Q18581932 Q674957 Q18635535 Q18635534 Q18635537 Q18609207 Q18635531 Q18635530 Q18635533 Q7290387 Q122229 Q18587547 Q18588302 Q18635536 Q18585862 Q18615797 Q11964839 Q4394461 Q18607342 Q11978923 Q18582269
OR((Q38,P6,c(Q502895)), (Q18577455,P710,c(Q502895)))
action filter_type
action union
action find
entity Q38
relation P6
action find
entity Q18577455
relation P710
type Q502895
[ANSWERS] are the heads of the government of Italy or participated in 1995 Iditarod
{'OR': [['Q38', 'P6', {'concept': 'Q502895'}], ['Q18577455', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q38 property:P6 ?h } UNION { resource:Q18577455 property:P710 ?h } } . ?h rdf:type ontology:Q502895 }
Charlie Boulding DeeDee Jonrowe Jeff King Keizo Funatsu David Milne Linwood Fiedler Pecos Humphreys Dave Branholm Lorren Weaver David Dalton Matteo Renzi Robert Salazar Bob Bright Vern Halter Robert Somers Tim Osmar Mark Wildermuth Ben Jacobson Don Bowers Barrie Raper Andy Sterns Rick Swenson Susan Whiton Pat Danly Jon Terhune Jerry Austin Rick Mackey Doug Swingley Jack Berry Cliff Roberson Robert Bundtzen Diana Moroney Mitch Seavey John Gourley Kazuo Kojima Ramey Smyth Harry Caldwell Tim Triumph Bill Cotter Larry Williams Wayne Curtis Enrico Letta Paula Gmerek Nicolas Pattaroni Max Hall Peryll Kyzer Art Church Randy Adkins Don Lyrek Ramy Brooks Martin Buser Dave Olesen Kathy Swenson Kjell Risung Bob Holder Rollin Westrum David Sawatzky Libby Riddles Matt Desalernos John Barron Nikolay Ettyne
Art Church, Nicolas Pattaroni, Dave Branholm, Doug Swingley, Nikolay Ettyne, Randy Adkins, Wayne Curtis, Bob Bright, Tim Osmar and John Barron are the heads of the government of Italy or participated in 1995 Iditarod
Art Church Nicolas Pattaroni Dave Branholm Doug Swingley Nikolay Ettyne Randy Adkins Wayne Curtis Bob Bright Tim Osmar John Barron
action filter_type
action union
action find
entity Italy
relation head of government
action find
entity 1995 Iditarod
relation participant
type common name
{'OR': [['Italy', 'head of government', {'concept': 'common name'}], ['1995 Iditarod', 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Italy property:head_of_government ?h } UNION { resource:1995_Iditarod property:participant ?h } } . ?h rdf:type ontology:common_name }
[]