Simple Question (Direct)
Simple Question
Q389490
P641
Q349
USER
Which sport was Brandon Saad a part of ?
(Q389490,P641,c(Q349))
action filter_type
action find
entity Q389490
relation P641
type Q349
['Q389490', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q389490 property:P641 ?y . ?y rdf:type ontology:Q349 }
Brandon Saad
action filter_type
action find
entity Brandon Saad
relation sport
type sport
['Brandon Saad', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Brandon_Saad property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q389490,P641,c(Q349))
action filter_type
action find
entity Q389490
relation P641
type Q349
The [ANSWER] was Brandon Saad a part of
['Q389490', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q389490 property:P641 ?y . ?y rdf:type ontology:Q349 }
ice hockey
The ice hockey was Brandon Saad a part of
ice hockey
action filter_type
action find
entity Brandon Saad
relation sport
type sport
['Brandon Saad', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Brandon_Saad property:sport ?y . ?y rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q389490
P21
Q290
USER
What is the sex of Brandon Saad ?
(Q389490,P21,c(Q290))
action filter_type
action find
entity Q389490
relation P21
type Q290
['Q389490', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q389490 property:P21 ?s . ?s rdf:type ontology:Q290 }
Brandon Saad
action filter_type
action find
entity Brandon Saad
relation gender
type sex
['Brandon Saad', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Brandon_Saad property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q389490,P21,c(Q290))
action filter_type
action find
entity Q389490
relation P21
type Q290
The sex of Brandon Saad is the [ANSWER]
['Q389490', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q389490 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of Brandon Saad is the male
male
action filter_type
action find
entity Brandon Saad
relation gender
type sex
['Brandon Saad', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Brandon_Saad property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q389490
P54
Q12973014
USER
What is Brandon Saad a member of ?
(Q389490,P54,c(Q12973014))
action filter_type
action find
entity Q389490
relation P54
type Q12973014
['Q389490', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { resource:Q389490 property:P54 ?x . ?x rdf:type ontology:Q12973014 }
Brandon Saad
action filter_type
action find
entity Brandon Saad
relation member of sports team
type sports team
['Brandon Saad', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { resource:Brandon_Saad property:member_of_sports_team ?x . ?x rdf:type ontology:sports_team }
[]
sports team
Q209636
SYSTEM
Chicago Blackhawks
Q209636
(Q389490,P54,c(Q12973014))
action filter_type
action find
entity Q389490
relation P54
type Q12973014
Brandon Saad of Fame [ANSWER]
['Q389490', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { resource:Q389490 property:P54 ?x . ?x rdf:type ontology:Q12973014 }
Chicago Blackhawks
Brandon Saad of Fame Chicago Blackhawks
Chicago Blackhawks
action filter_type
action find
entity Brandon Saad
relation member of sports team
type sports team
['Brandon Saad', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { resource:Brandon_Saad property:member_of_sports_team ?x . ?x rdf:type ontology:sports_team }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q209636 Q4974513 Q326842
P17
Q15617994
USER
Is that sports team present in Brookeland Independent School District and Tassullo ?
(Q209636,P17,Q4974513) (Q209636,P17,Q326842)
action is_in
entity Q209636
action intersection
action find_reverse
entity Q4974513
relation P17
action find_reverse
entity Q326842
relation P17
['Q209636', 'P17', 'Q4974513'] ['Q209636', 'P17', 'Q326842']
ASK WHERE { resource:Q209636 property:P17 resource:Q4974513 . resource:Q209636 property:P17 resource:Q326842 }
Chicago Blackhawks Brookeland Independent School District Tassullo
action is_in
entity Chicago Blackhawks
action intersection
action find_reverse
entity Brookeland Independent School District
relation country
action find_reverse
entity Tassullo
relation country
['Chicago Blackhawks', 'country', 'Brookeland Independent School District'] ['Chicago Blackhawks', 'country', 'Tassullo']
ASK WHERE { resource:Chicago_Blackhawks property:country resource:Brookeland_Independent_School_District . resource:Chicago_Blackhawks property:country resource:Tassullo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q209636,P17,Q4974513) (Q209636,P17,Q326842)
action is_in
entity Q209636
action intersection
action find_reverse
entity Q4974513
relation P17
action find_reverse
entity Q326842
relation P17
[ANSWER]
['Q209636', 'P17', 'Q4974513'] ['Q209636', 'P17', 'Q326842']
ASK WHERE { resource:Q209636 property:P17 resource:Q4974513 . resource:Q209636 property:P17 resource:Q326842 }
No
action is_in
entity Chicago Blackhawks
action intersection
action find_reverse
entity Brookeland Independent School District
relation country
action find_reverse
entity Tassullo
relation country
['Chicago Blackhawks', 'country', 'Brookeland Independent School District'] ['Chicago Blackhawks', 'country', 'Tassullo']
ASK WHERE { resource:Chicago_Blackhawks property:country resource:Brookeland_Independent_School_District . resource:Chicago_Blackhawks property:country resource:Tassullo }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q209636
P137
Q811979
USER
Which architectural structure was managed by Chicago Blackhawks ?
(c(Q811979),P137,Q209636)
action filter_type
action find_reverse
entity Q209636
relation P137
type Q811979
[{'concept': 'Q811979'}, 'P137', 'Q209636']
SELECT DISTINCT ?h WHERE { ?h property:P137 resource:Q209636 . ?h rdf:type ontology:Q811979 }
Chicago Blackhawks
action filter_type
action find_reverse
entity Chicago Blackhawks
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Chicago Blackhawks']
SELECT DISTINCT ?h WHERE { ?h property:operator resource:Chicago_Blackhawks . ?h rdf:type ontology:architectural_structure }
[]
architectural structure
Q2703852
SYSTEM
Chicago Stadium
Q2703852
(c(Q811979),P137,Q209636)
action filter_type
action find_reverse
entity Q209636
relation P137
type Q811979
Games [ANSWER] was managed by Chicago Blackhawks
[{'concept': 'Q811979'}, 'P137', 'Q209636']
SELECT DISTINCT ?h WHERE { ?h property:P137 resource:Q209636 . ?h rdf:type ontology:Q811979 }
Chicago Stadium
Games Chicago Stadium was managed by Chicago Blackhawks
Chicago Stadium
action filter_type
action find_reverse
entity Chicago Blackhawks
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'Chicago Blackhawks']
SELECT DISTINCT ?h WHERE { ?h property:operator resource:Chicago_Blackhawks . ?h rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2703852
P127
Q12973014
USER
Who owns that architectural structure ?
(Q2703852,P127,c(Q12973014))
action filter_type
action find
entity Q2703852
relation P127
type Q12973014
['Q2703852', 'P127', {'concept': 'Q12973014'}]
SELECT DISTINCT ?n WHERE { resource:Q2703852 property:P127 ?n . ?n rdf:type ontology:Q12973014 }
Chicago Stadium
action filter_type
action find
entity Chicago Stadium
relation owned by
type sports team
['Chicago Stadium', 'owned by', {'concept': 'sports team'}]
SELECT DISTINCT ?n WHERE { resource:Chicago_Stadium property:owned_by ?n . ?n rdf:type ontology:sports_team }
[]
sports team
Q209636
SYSTEM
Chicago Blackhawks
Q209636
(Q2703852,P127,c(Q12973014))
action filter_type
action find
entity Q2703852
relation P127
type Q12973014
[ANSWER] owns that architectural structure
['Q2703852', 'P127', {'concept': 'Q12973014'}]
SELECT DISTINCT ?n WHERE { resource:Q2703852 property:P127 ?n . ?n rdf:type ontology:Q12973014 }
Chicago Blackhawks
Chicago Blackhawks owns that architectural structure
Chicago Blackhawks
action filter_type
action find
entity Chicago Stadium
relation owned by
type sports team
['Chicago Stadium', 'owned by', {'concept': 'sports team'}]
SELECT DISTINCT ?n WHERE { resource:Chicago_Stadium property:owned_by ?n . ?n rdf:type ontology:sports_team }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P641
Q31629 Q12973014
USER
Which types of sport did max number of sports teams participate in ?
(c(Q12973014),P641,Q5300110)
action argmax
action find_tuple_counts
relation P641
type Q31629
type Q12973014
[{'concept': 'Q12973014'}, 'P641', 'Q5300110']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?q ) WHERE { ?a property:P641 ?n . ?a rdf:type ontology:Q31629 . ?n rdf:type ontology:Q12973014 } GROUP BY ?a } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?p ) WHERE { ?f property:P641 ?z . ?z rdf:type ontology:Q12973014 . ?f rdf:type ontology:Q31629 } GROUP BY ?f } . FILTER ( ?p = ?e ) }
action argmax
action find_tuple_counts
relation sport
type type of sport
type sports team
[{'concept': 'sports team'}, 'sport', 'double trap']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?q ) WHERE { ?a property:sport ?n . ?a rdf:type ontology:type_of_sport . ?n rdf:type ontology:sports_team } GROUP BY ?a } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?p ) WHERE { ?f property:sport ?z . ?z rdf:type ontology:sports_team . ?f rdf:type ontology:type_of_sport } GROUP BY ?f } . FILTER ( ?p = ?e ) }
[]
type of sport sports team
Q3609
SYSTEM
road bicycle racing
Q3609
(c(Q12973014),P641,Q5300110)
action argmax
action find_tuple_counts
relation P641
type Q31629
type Q12973014
The [ANSWER] max number of sports teams participated in
[{'concept': 'Q12973014'}, 'P641', 'Q5300110']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?q ) WHERE { ?a property:P641 ?n . ?a rdf:type ontology:Q31629 . ?n rdf:type ontology:Q12973014 } GROUP BY ?a } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?p ) WHERE { ?f property:P641 ?z . ?z rdf:type ontology:Q12973014 . ?f rdf:type ontology:Q31629 } GROUP BY ?f } . FILTER ( ?p = ?e ) }
road bicycle racing
The road bicycle racing max number of sports teams participated in
road bicycle racing
action argmax
action find_tuple_counts
relation sport
type type of sport
type sports team
[{'concept': 'sports team'}, 'sport', 'double trap']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?q ) WHERE { ?a property:sport ?n . ?a rdf:type ontology:type_of_sport . ?n rdf:type ontology:sports_team } GROUP BY ?a } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?p ) WHERE { ?f property:sport ?z . ?z rdf:type ontology:sports_team . ?f rdf:type ontology:type_of_sport } GROUP BY ?f } . FILTER ( ?p = ?e ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21284601 Q389490
P27
Q15617994
USER
Which administrative territories are Brandon Saad or Samiullah Beigh a civilian of ?
OR((Q389490,P27,c(Q15617994)), (Q21284601,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q389490
relation P27
action find
entity Q21284601
relation P27
type Q15617994
{'OR': [['Q389490', 'P27', {'concept': 'Q15617994'}], ['Q21284601', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Q389490 ) ( resource:Q21284601 ) } . ?n property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
Samiullah Beigh Brandon Saad
action filter_type
action union
action find
entity Brandon Saad
relation country of citizenship
action find
entity Samiullah Beigh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brandon Saad', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Samiullah Beigh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Brandon_Saad ) ( resource:Samiullah_Beigh ) } . ?n property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q668
SYSTEM
United States of America, India
Q30 Q668
OR((Q389490,P27,c(Q15617994)), (Q21284601,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q389490
relation P27
action find
entity Q21284601
relation P27
type Q15617994
[ANSWERS] are Brandon Saad or Samiullah Beigh a civilian of
{'OR': [['Q389490', 'P27', {'concept': 'Q15617994'}], ['Q21284601', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Q389490 ) ( resource:Q21284601 ) } . ?n property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
United States of America India
United States of America and India are Brandon Saad or Samiullah Beigh a civilian of
United States of America India
action filter_type
action union
action find
entity Brandon Saad
relation country of citizenship
action find
entity Samiullah Beigh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brandon Saad', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Samiullah Beigh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Brandon_Saad ) ( resource:Samiullah_Beigh ) } . ?n property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30
P915
Q838948
USER
Which works of art were filmed at that administrative territory ?
(c(Q838948),P915,Q30)
action filter_type
action find_reverse
entity Q30
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q30']
SELECT DISTINCT ?y WHERE { ?y property:P915 resource:Q30 . ?y rdf:type ontology:Q838948 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'United States of America']
SELECT DISTINCT ?y WHERE { ?y property:filming_location resource:United_States_of_America . ?y rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q30 Q668
(c(Q838948),P915,Q30) (c(Q838948),P915,Q668)
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q30'] [{'concept': 'Q838948'}, 'P915', 'Q668']
SELECT DISTINCT ?y WHERE { ?y property:P915 resource:Q30 . ?y rdf:type ontology:Q838948 }
United States of America India
Did you mean United States of America ?
United States of America
[{'concept': 'work of art'}, 'filming location', 'United States of America'] [{'concept': 'work of art'}, 'filming location', 'India']
SELECT DISTINCT ?y WHERE { ?y property:filming_location resource:United_States_of_America . ?y rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P915,Q30)
[{'concept': 'Q838948'}, 'P915', 'Q30']
[{'concept': 'work of art'}, 'filming location', 'United States of America']
[]
Q1127828 Q19946486 Q16251439
SYSTEM
Koyaanisqatsi, Til Vesterheimen, A Hologram for the King
Q1127828 Q19946486 Q16251439
(c(Q838948),P915,Q30)
action filter_type
action find_reverse
entity Q30
relation P915
type Q838948
[ANSWERS] were filmed at that administrative territory
[{'concept': 'Q838948'}, 'P915', 'Q30']
SELECT DISTINCT ?y WHERE { ?y property:P915 resource:Q30 . ?y rdf:type ontology:Q838948 }
Koyaanisqatsi Til Vesterheimen A Hologram for the King
Koyaanisqatsi, Til Vesterheimen and A Hologram for the King were filmed at that administrative territory
Koyaanisqatsi Til Vesterheimen A Hologram for the King
action filter_type
action find_reverse
entity United States of America
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'United States of America']
SELECT DISTINCT ?y WHERE { ?y property:filming_location resource:United_States_of_America . ?y rdf:type ontology:work_of_art }
[]