Simple Question (Direct)
Simple Question
Q370484
P21
Q290
USER
Which sex does Thanduyise Khuboni have ?
(Q370484,P21,c(Q290))
action filter_type
action find
entity Q370484
relation P21
type Q290
['Q370484', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q370484 property:P21 ?b . ?b rdf:type ontology:Q290 }
Thanduyise Khuboni
action filter_type
action find
entity Thanduyise Khuboni
relation gender
type sex
['Thanduyise Khuboni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Thanduyise_Khuboni property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q370484,P21,c(Q290))
action filter_type
action find
entity Q370484
relation P21
type Q290
Thanduyise Khuboni has a [ANSWER]
['Q370484', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q370484 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
Thanduyise Khuboni has a male
male
action filter_type
action find
entity Thanduyise Khuboni
relation gender
type sex
['Thanduyise Khuboni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Thanduyise_Khuboni property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q370484
P54
Q1194951
USER
Which national sports team is Thanduyise Khuboni a member of ?
(Q370484,P54,c(Q1194951))
action filter_type
action find
entity Q370484
relation P54
type Q1194951
['Q370484', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?a WHERE { resource:Q370484 property:P54 ?a . ?a rdf:type ontology:Q1194951 }
Thanduyise Khuboni
action filter_type
action find
entity Thanduyise Khuboni
relation member of sports team
type national sports team
['Thanduyise Khuboni', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?a WHERE { resource:Thanduyise_Khuboni property:member_of_sports_team ?a . ?a rdf:type ontology:national_sports_team }
[]
national sports team
Q170327
SYSTEM
South Africa national football team
Q170327
(Q370484,P54,c(Q1194951))
action filter_type
action find
entity Q370484
relation P54
type Q1194951
[ANSWER] is Thanduyise Khuboni a member of
['Q370484', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?a WHERE { resource:Q370484 property:P54 ?a . ?a rdf:type ontology:Q1194951 }
South Africa national football team
South Africa national football team is Thanduyise Khuboni a member of
South Africa national football team
action filter_type
action find
entity Thanduyise Khuboni
relation member of sports team
type national sports team
['Thanduyise Khuboni', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?a WHERE { resource:Thanduyise_Khuboni property:member_of_sports_team ?a . ?a rdf:type ontology:national_sports_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1923
Q1194951 Q15275719 Q13406554
USER
How many national sports teams were participants in approximately 13 recurring events or sport competitions ?
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
value 13
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?w ) WHERE { { ?g property:P1923 ?t . ?t rdf:type ontology:Q1194951 . ?g rdf:type ontology:Q15275719 } UNION { ?g property:P1923 ?t . ?t rdf:type ontology:Q1194951 . ?g rdf:type ontology:Q13406554 } } GROUP BY ?t } . FILTER ( ?w = 13 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
value 13
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?w ) WHERE { { ?g property:participating_teams ?t . ?t rdf:type ontology:national_sports_team . ?g rdf:type ontology:recurring_event } UNION { ?g property:participating_teams ?t . ?t rdf:type ontology:national_sports_team . ?g rdf:type ontology:sport_competition } } GROUP BY ?t } . FILTER ( ?w = 13 ) }
[]
national sports team recurring event sport competition
SYSTEM
22
Q34044 Q267245 Q166776 Q160826 Q543842 Q170561 Q172025 Q172020 Q134479 Q47050 Q42267 Q166196 Q164089 Q163534 Q188363 Q168397 Q165141 Q182072 Q164134 Q79800 Q134916 Q47762
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
value 13
[ANSWER]
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?w ) WHERE { { ?g property:P1923 ?t . ?t rdf:type ontology:Q1194951 . ?g rdf:type ontology:Q15275719 } UNION { ?g property:P1923 ?t . ?t rdf:type ontology:Q1194951 . ?g rdf:type ontology:Q13406554 } } GROUP BY ?t } . FILTER ( ?w = 13 ) }
Scotland national football team Portugal national football team Belgium national football team Sweden national football team South Korea national football team Hungary national football team Chile national football team Paraguay national football team Croatia national football team Netherlands national football team Spain national football team Poland national football team Mexico national football team Austria national football team Yugoslavia national football team Romania national football team Swiss national football team Czechoslovakia national football team United States men's national soccer team Argentina national football team Uruguay national football team England national football team
22
action count
action approx
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
value 13
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?w ) WHERE { { ?g property:participating_teams ?t . ?t rdf:type ontology:national_sports_team . ?g rdf:type ontology:recurring_event } UNION { ?g property:participating_teams ?t . ?t rdf:type ontology:national_sports_team . ?g rdf:type ontology:sport_competition } } GROUP BY ?t } . FILTER ( ?w = 13 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 1652 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1652
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q34379 . ?n property:P1303 ?c } GROUP BY ?c } . FILTER ( ?j = 1652 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1652
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:common_name . ?c rdf:type ontology:musical_instrument . ?n property:instrument ?c } GROUP BY ?c } . FILTER ( ?j = 1652 ) }
[]
musical instrument common name
SYSTEM
8
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1652
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q34379 . ?n property:P1303 ?c } GROUP BY ?c } . FILTER ( ?j = 1652 ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
8
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1652
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:common_name . ?c rdf:type ontology:musical_instrument . ?n property:instrument ?c } GROUP BY ?c } . FILTER ( ?j = 1652 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q170327 Q27971
P1923
Q15275719
USER
How many recurring events did South Africa national football team and Tunisia national football team participate in ?
(c(Q15275719),P1923,Q170327) (c(Q15275719),P1923,Q27971)
action count
action intersection
action filter_type
action find_reverse
entity Q170327
relation P1923
type Q15275719
action filter_type
action find_reverse
entity Q27971
relation P1923
type Q15275719
[{'concept': 'Q15275719'}, 'P1923', 'Q170327'] [{'concept': 'Q15275719'}, 'P1923', 'Q27971']
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P1923 resource:Q170327 . ?i rdf:type ontology:Q15275719 . ?i rdf:type ontology:Q15275719 . ?i property:P1923 resource:Q27971 }
South Africa national football team Tunisia national football team
action count
action intersection
action filter_type
action find_reverse
entity South Africa national football team
relation participating teams
type recurring event
action filter_type
action find_reverse
entity Tunisia national football team
relation participating teams
type recurring event
[{'concept': 'recurring event'}, 'participating teams', 'South Africa national football team'] [{'concept': 'recurring event'}, 'participating teams', 'Tunisia national football team']
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:participating_teams resource:South_Africa_national_football_team . ?i rdf:type ontology:recurring_event . ?i rdf:type ontology:recurring_event . ?i property:participating_teams resource:Tunisia_national_football_team }
[]
recurring event
SYSTEM
2
Q47735 Q101730
(c(Q15275719),P1923,Q170327) (c(Q15275719),P1923,Q27971)
action count
action intersection
action filter_type
action find_reverse
entity Q170327
relation P1923
type Q15275719
action filter_type
action find_reverse
entity Q27971
relation P1923
type Q15275719
[ANSWER]
[{'concept': 'Q15275719'}, 'P1923', 'Q170327'] [{'concept': 'Q15275719'}, 'P1923', 'Q27971']
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P1923 resource:Q170327 . ?i rdf:type ontology:Q15275719 . ?i rdf:type ontology:Q15275719 . ?i property:P1923 resource:Q27971 }
2002 FIFA World Cup 1998 FIFA World Cup
2
action count
action intersection
action filter_type
action find_reverse
entity South Africa national football team
relation participating teams
type recurring event
action filter_type
action find_reverse
entity Tunisia national football team
relation participating teams
type recurring event
[{'concept': 'recurring event'}, 'participating teams', 'South Africa national football team'] [{'concept': 'recurring event'}, 'participating teams', 'Tunisia national football team']
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:participating_teams resource:South_Africa_national_football_team . ?i rdf:type ontology:recurring_event . ?i rdf:type ontology:recurring_event . ?i property:participating_teams resource:Tunisia_national_football_team }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10263506 Q370484
P27 P17
Q15617994
USER
Which administrative territories are Thanduyise Khuboni an inhabitant of or are DF-006 present in ?
OR((Q370484,P27,c(Q15617994)), (Q10263506,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q370484
relation P27
action find
entity Q10263506
relation P17
type Q15617994
{'OR': [['Q370484', 'P27', {'concept': 'Q15617994'}], ['Q10263506', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q370484 property:P27 ?m } UNION { resource:Q10263506 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
DF-006 Thanduyise Khuboni
action filter_type
action union
action find
entity Thanduyise Khuboni
relation country of citizenship
action find
entity DF-006
relation country
type designation for an administrative territorial entity
{'OR': [['Thanduyise Khuboni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['DF-006', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Thanduyise_Khuboni property:country_of_citizenship ?m } UNION { resource:DF-006 property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q258
SYSTEM
Brazil, South Africa
Q155 Q258
OR((Q370484,P27,c(Q15617994)), (Q10263506,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q370484
relation P27
action find
entity Q10263506
relation P17
type Q15617994
[ANSWERS] are Thanduyise Khuboni an inhabitant of or are DF-006 present in
{'OR': [['Q370484', 'P27', {'concept': 'Q15617994'}], ['Q10263506', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q370484 property:P27 ?m } UNION { resource:Q10263506 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Brazil South Africa
Brazil and South Africa are Thanduyise Khuboni an inhabitant of or are DF-006 present in
Brazil South Africa
action filter_type
action union
action find
entity Thanduyise Khuboni
relation country of citizenship
action find
entity DF-006
relation country
type designation for an administrative territorial entity
{'OR': [['Thanduyise Khuboni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['DF-006', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Thanduyise_Khuboni property:country_of_citizenship ?m } UNION { resource:DF-006 property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q144467
P530
Q15617994
USER
Do Zaisenhausen have ambassadorial relations with those ones ?
(Q144467,P530,Q155) (Q144467,P530,Q258)
action is_in
entity prev_answer
action find
entity Q144467
relation P530
['Q144467', 'P530', 'Q155'] ['Q144467', 'P530', 'Q258']
ASK WHERE { resource:Q144467 property:P530 ?q . VALUES ( ?q ) { ( resource:Q155 ) ( resource:Q258 ) } }
Zaisenhausen
action is_in
entity prev_answer
action find
entity Zaisenhausen
relation diplomatic relation
['Zaisenhausen', 'diplomatic relation', 'Brazil'] ['Zaisenhausen', 'diplomatic relation', 'South Africa']
ASK WHERE { resource:Zaisenhausen property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Brazil ) ( resource:South_Africa ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q144467,P530,Q155) (Q144467,P530,Q258)
action is_in
entity prev_answer
action find
entity Q144467
relation P530
[ANSWER]
['Q144467', 'P530', 'Q155'] ['Q144467', 'P530', 'Q258']
ASK WHERE { resource:Q144467 property:P530 ?q . VALUES ( ?q ) { ( resource:Q155 ) ( resource:Q258 ) } }
No
action is_in
entity prev_answer
action find
entity Zaisenhausen
relation diplomatic relation
['Zaisenhausen', 'diplomatic relation', 'Brazil'] ['Zaisenhausen', 'diplomatic relation', 'South Africa']
ASK WHERE { resource:Zaisenhausen property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Brazil ) ( resource:South_Africa ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q30 Q258
P27
Q502895
USER
Which people are civilians of South Africa and United States of America ?
AND((c(Q502895),P27,Q258), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q258
relation P27
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q258'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?k WHERE { ?k property:P27 resource:Q258 . ?k property:P27 resource:Q30 . ?k rdf:type ontology:Q502895 }
United States of America South Africa
action filter_type
action intersection
action find_reverse
entity South Africa
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'South Africa'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?k WHERE { ?k property:country_of_citizenship resource:South_Africa . ?k property:country_of_citizenship resource:United_States_of_America . ?k rdf:type ontology:common_name }
[]
common name
Q3849525 Q2524773 Q7183177 Q6175878 Q1393560 Q1778558 Q335027 Q918798 Q53400 Q5092272
SYSTEM
Some of them are Mark Nigrini, Darian Townsend, Philip Barlow, Jeffrey Bub, Nana Meriwether, Richard Alfred Rossiter, Seymour Papert, Mike Melvill, Kevin Curren, Cherry Adair
Q6832227 Q80046 Q6756059 Q194529 Q1393560 Q7183177 Q4401017 Q6175878 Q2524773 Q694785 Q4497898 Q364881 Q4115716 Q3617855 Q918798 Q565495 Q54530 Q6771717 Q3849525 Q223542 Q510577 Q1363420 Q317521 Q5092272 Q335027 Q53400 Q380381 Q53565 Q716053 Q297739 Q772798 Q46928 Q15715682 Q1778558 Q204323
AND((c(Q502895),P27,Q258), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q258
relation P27
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWERS] are civilians of South Africa and United States of America
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q258'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?k WHERE { ?k property:P27 resource:Q258 . ?k property:P27 resource:Q30 . ?k rdf:type ontology:Q502895 }
Michael Levitt Charlize Theron Marcel Brache Jessica Marais Nana Meriwether Philip Barlow John Karlin Jeffrey Bub Darian Townsend Arnold Lazarus Basil Hirschowitz Trevor Rabin Dave Wittenberg Anna de Brémont Mike Melvill Joseph Wolpe Johan Kriek Marlene Behrmann Mark Nigrini Allan McLeod Cormack Yvonne Vermaak Roy Wegerle Elon Musk Cherry Adair Seymour Papert Kevin Curren Dave Matthews Liezel Huber J.R. Rotem Arnold Vosloo Wayne Kramer Max Theiler Ivor van Heerden Richard Alfred Rossiter Phil Ramone
Mark Nigrini, Darian Townsend, Philip Barlow, Jeffrey Bub, Nana Meriwether, Richard Alfred Rossiter, Seymour Papert, Mike Melvill, Kevin Curren and Cherry Adair are civilians of South Africa and United States of America
Mark Nigrini Darian Townsend Philip Barlow Jeffrey Bub Nana Meriwether Richard Alfred Rossiter Seymour Papert Mike Melvill Kevin Curren Cherry Adair
action filter_type
action intersection
action find_reverse
entity South Africa
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'South Africa'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?k WHERE { ?k property:country_of_citizenship resource:South_Africa . ?k property:country_of_citizenship resource:United_States_of_America . ?k rdf:type ontology:common_name }
[]