Simple Question (Direct)
Simple Question
Q4714684
P54
Q12973014
USER
Which sports teams are Alejandro Sánchez a member of ?
(Q4714684,P54,c(Q12973014))
action filter_type
action find
entity Q4714684
relation P54
type Q12973014
['Q4714684', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12973014 . resource:Q4714684 property:P54 ?v }
Alejandro Sánchez
action filter_type
action find
entity Alejandro Sánchez
relation member of sports team
type sports team
['Alejandro Sánchez', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sports_team . resource:Alejandro_Sánchez property:member_of_sports_team ?v }
[]
sports team
Q650855 Q604879 Q1148233
SYSTEM
Detroit Tigers, Minnesota Twins, Montreal Expos
Q650840 Q604879 Q1148233 Q2343915 Q650855 Q308966 Q504339
(Q4714684,P54,c(Q12973014))
action filter_type
action find
entity Q4714684
relation P54
type Q12973014
The [ANSWERS] are Alejandro Sánchez a member of
['Q4714684', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12973014 . resource:Q4714684 property:P54 ?v }
Philadelphia Phillies Minnesota Twins Montreal Expos Nashville Sounds Detroit Tigers San Francisco Giants Oakland Athletics
The Detroit Tigers, Minnesota Twins and Montreal Expos are Alejandro Sánchez a member of
Detroit Tigers Minnesota Twins Montreal Expos
action filter_type
action find
entity Alejandro Sánchez
relation member of sports team
type sports team
['Alejandro Sánchez', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sports_team . resource:Alejandro_Sánchez property:member_of_sports_team ?v }
[]
Clarification
Simple Question|Single Entity|Indirect
Q650855
P115
Q811430
USER
Where is the home field of that sports team ?
(Q650855,P115,c(Q811430))
action filter_type
action find
entity Q650855
relation P115
type Q811430
['Q650855', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?s WHERE { resource:Q650855 property:P115 ?s . ?s rdf:type ontology:Q811430 }
Detroit Tigers
action filter_type
action find
entity Detroit Tigers
relation home venue
type construction
['Detroit Tigers', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?s WHERE { resource:Detroit_Tigers property:home_venue ?s . ?s rdf:type ontology:construction }
[]
construction
Clarification for simple ques.
Q604879
SYSTEM
Did you mean Minnesota Twins ?
Q650855 Q604879 Q1148233
(Q650855,P115,c(Q811430)) (Q604879,P115,c(Q811430)) (Q1148233,P115,c(Q811430))
[ANSWER]
['Q650855', 'P115', {'concept': 'Q811430'}] ['Q604879', 'P115', {'concept': 'Q811430'}] ['Q1148233', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?s WHERE { resource:Q650855 property:P115 ?s . ?s rdf:type ontology:Q811430 }
Detroit Tigers Minnesota Twins Montreal Expos
Did you mean Minnesota Twins ?
Minnesota Twins
['Detroit Tigers', 'home venue', {'concept': 'construction'}] ['Minnesota Twins', 'home venue', {'concept': 'construction'}] ['Montreal Expos', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?s WHERE { resource:Detroit_Tigers property:home_venue ?s . ?s rdf:type ontology:construction }
[]
Simple Question (Coreferenced)
USER
No, I meant Detroit Tigers. Could you tell me the answer for that?
(Q650855,P115,c(Q811430))
Q650855
['Q650855', 'P115', {'concept': 'Q811430'}]
['Detroit Tigers', 'home venue', {'concept': 'construction'}]
[]
Q868482
SYSTEM
Comerica Park
Q868482
(Q650855,P115,c(Q811430))
action filter_type
action find
entity Q650855
relation P115
type Q811430
The home field of that sports team is [ANSWER]
['Q650855', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?s WHERE { resource:Q650855 property:P115 ?s . ?s rdf:type ontology:Q811430 }
Comerica Park
The home field of that sports team is Comerica Park
Comerica Park
action filter_type
action find
entity Detroit Tigers
relation home venue
type construction
['Detroit Tigers', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?s WHERE { resource:Detroit_Tigers property:home_venue ?s . ?s rdf:type ontology:construction }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16633143 Q4714684
P641
Q349
USER
Which sports were Alejandro Sánchez or Tobias Karlsson a part of ?
OR((Q4714684,P641,c(Q349)), (Q16633143,P641,c(Q349)))
action filter_type
action union
action find
entity Q4714684
relation P641
action find
entity Q16633143
relation P641
type Q349
{'OR': [['Q4714684', 'P641', {'concept': 'Q349'}], ['Q16633143', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q4714684 property:P641 ?h } UNION { resource:Q16633143 property:P641 ?h } } . ?h rdf:type ontology:Q349 }
Tobias Karlsson Alejandro Sánchez
action filter_type
action union
action find
entity Alejandro Sánchez
relation sport
action find
entity Tobias Karlsson
relation sport
type sport
{'OR': [['Alejandro Sánchez', 'sport', {'concept': 'sport'}], ['Tobias Karlsson', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Alejandro_Sánchez property:sport ?h } UNION { resource:Tobias_Karlsson property:sport ?h } } . ?h rdf:type ontology:sport }
[]
sport
Q5369 Q2736
SYSTEM
baseball, association football
Q5369 Q2736
OR((Q4714684,P641,c(Q349)), (Q16633143,P641,c(Q349)))
action filter_type
action union
action find
entity Q4714684
relation P641
action find
entity Q16633143
relation P641
type Q349
[ANSWERS] were Alejandro Sánchez or Tobias Karlsson a part of
{'OR': [['Q4714684', 'P641', {'concept': 'Q349'}], ['Q16633143', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q4714684 property:P641 ?h } UNION { resource:Q16633143 property:P641 ?h } } . ?h rdf:type ontology:Q349 }
baseball association football
Baseball and association football were Alejandro Sánchez or Tobias Karlsson a part of
baseball association football
action filter_type
action union
action find
entity Alejandro Sánchez
relation sport
action find
entity Tobias Karlsson
relation sport
type sport
{'OR': [['Alejandro Sánchez', 'sport', {'concept': 'sport'}], ['Tobias Karlsson', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Alejandro_Sánchez property:sport ?h } UNION { resource:Tobias_Karlsson property:sport ?h } } . ?h rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16633143
P19
Q15700808
USER
Which urban unit definition is the birthplace of Tobias Karlsson ?
(Q16633143,P19,c(Q15700808))
action filter_type
action find
entity Q16633143
relation P19
type Q15700808
['Q16633143', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15700808 . resource:Q16633143 property:P19 ?x }
Tobias Karlsson
action filter_type
action find
entity Tobias Karlsson
relation place of birth
type urban unit definition
['Tobias Karlsson', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:urban_unit_definition . resource:Tobias_Karlsson property:place_of_birth ?x }
[]
urban unit definition
Q1725770
SYSTEM
Öckerö
Q1725770
(Q16633143,P19,c(Q15700808))
action filter_type
action find
entity Q16633143
relation P19
type Q15700808
[ANSWER] is the birthplace of Tobias Karlsson
['Q16633143', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15700808 . resource:Q16633143 property:P19 ?x }
Öckerö
Öckerö is the birthplace of Tobias Karlsson
Öckerö
action filter_type
action find
entity Tobias Karlsson
relation place of birth
type urban unit definition
['Tobias Karlsson', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:urban_unit_definition . resource:Tobias_Karlsson property:place_of_birth ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6174117
Q15700808
USER
And what about Jeff Hunt?
(Q6174117,P19,c(Q15700808))
action filter_type
action find
entity Q6174117
relation P19
type Q15700808
['Q6174117', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15700808 . resource:Q6174117 property:P19 ?n }
Jeff Hunt
action filter_type
action find
entity Jeff Hunt
relation place of birth
type urban unit definition
['Jeff Hunt', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:urban_unit_definition . resource:Jeff_Hunt property:place_of_birth ?n }
[]
urban unit definition
Q5430219
SYSTEM
Fairfield
Q5430219
(Q6174117,P19,c(Q15700808))
action filter_type
action find
entity Q6174117
relation P19
type Q15700808
[ANSWER]
['Q6174117', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15700808 . resource:Q6174117 property:P19 ?n }
Fairfield
Fairfield
action filter_type
action find
entity Jeff Hunt
relation place of birth
type urban unit definition
['Jeff Hunt', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:urban_unit_definition . resource:Jeff_Hunt property:place_of_birth ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q868482
P276
Q500834
USER
What is situated at Comerica Park ?
(c(Q500834),P276,Q868482)
action filter_type
action find_reverse
entity Q868482
relation P276
type Q500834
[{'concept': 'Q500834'}, 'P276', 'Q868482']
SELECT DISTINCT ?u WHERE { ?u property:P276 resource:Q868482 . ?u rdf:type ontology:Q500834 }
Comerica Park
action filter_type
action find_reverse
entity Comerica Park
relation location
type tournament
[{'concept': 'tournament'}, 'location', 'Comerica Park']
SELECT DISTINCT ?u WHERE { ?u property:location resource:Comerica_Park . ?u rdf:type ontology:tournament }
[]
tournament
Q1190373
SYSTEM
2012 World Series
Q1190373
(c(Q500834),P276,Q868482)
action filter_type
action find_reverse
entity Q868482
relation P276
type Q500834
[ANSWER] is situated at Comerica Park
[{'concept': 'Q500834'}, 'P276', 'Q868482']
SELECT DISTINCT ?u WHERE { ?u property:P276 resource:Q868482 . ?u rdf:type ontology:Q500834 }
2012 World Series
2012 World Series is situated at Comerica Park
2012 World Series
action filter_type
action find_reverse
entity Comerica Park
relation location
type tournament
[{'concept': 'tournament'}, 'location', 'Comerica Park']
SELECT DISTINCT ?u WHERE { ?u property:location resource:Comerica_Park . ?u rdf:type ontology:tournament }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1190373
P1346
Q12973014
USER
Who won that tournament ?
(Q1190373,P1346,c(Q12973014))
action filter_type
action find
entity Q1190373
relation P1346
type Q12973014
['Q1190373', 'P1346', {'concept': 'Q12973014'}]
SELECT DISTINCT ?z WHERE { resource:Q1190373 property:P1346 ?z . ?z rdf:type ontology:Q12973014 }
2012 World Series
action filter_type
action find
entity 2012 World Series
relation winner
type sports team
['2012 World Series', 'winner', {'concept': 'sports team'}]
SELECT DISTINCT ?z WHERE { resource:2012_World_Series property:winner ?z . ?z rdf:type ontology:sports_team }
[]
sports team
Q308966
SYSTEM
San Francisco Giants
Q308966
(Q1190373,P1346,c(Q12973014))
action filter_type
action find
entity Q1190373
relation P1346
type Q12973014
The [ANSWER] won that tournament
['Q1190373', 'P1346', {'concept': 'Q12973014'}]
SELECT DISTINCT ?z WHERE { resource:Q1190373 property:P1346 ?z . ?z rdf:type ontology:Q12973014 }
San Francisco Giants
The San Francisco Giants won that tournament
San Francisco Giants
action filter_type
action find
entity 2012 World Series
relation winner
type sports team
['2012 World Series', 'winner', {'concept': 'sports team'}]
SELECT DISTINCT ?z WHERE { resource:2012_World_Series property:winner ?z . ?z rdf:type ontology:sports_team }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q811430 Q16970 Q811430
USER
Which constructions are the main uses of atleast 2 churches or constructions ?
(c(Q16970)|c(Q811430),P366,c(Q811430))
action atleast
action union
action find_reverse_tuple_counts
relation P366
type Q811430
type Q16970
action find_reverse_tuple_counts
relation P366
type Q811430
type Q811430
value 2
[[{'concept': 'Q16970'}, {'concept': 'Q811430'}], 'P366', {'concept': 'Q811430'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?c WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:Q16970 ) ( ontology:Q811430 ) } } GROUP BY ?c } . FILTER ( ?n >= 2 ) }
action atleast
action union
action find_reverse_tuple_counts
relation use
type construction
type church
action find_reverse_tuple_counts
relation use
type construction
type construction
value 2
[[{'concept': 'church'}, {'concept': 'construction'}], 'use', {'concept': 'construction'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?c WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:church ) ( ontology:construction ) } } GROUP BY ?c } . FILTER ( ?n >= 2 ) }
[]
construction church construction
Q11707 Q1370598
SYSTEM
restaurant, place of worship
Q11707 Q1370598
(c(Q16970)|c(Q811430),P366,c(Q811430))
action atleast
action union
action find_reverse_tuple_counts
relation P366
type Q811430
type Q16970
action find_reverse_tuple_counts
relation P366
type Q811430
type Q811430
value 2
[ANSWERS] are the main uses of atleast 2 churches or constructions
[[{'concept': 'Q16970'}, {'concept': 'Q811430'}], 'P366', {'concept': 'Q811430'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?c WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:Q16970 ) ( ontology:Q811430 ) } } GROUP BY ?c } . FILTER ( ?n >= 2 ) }
restaurant place of worship
Restaurant and place of worship are the main uses of atleast 2 churches or constructions
restaurant place of worship
action atleast
action union
action find_reverse_tuple_counts
relation use
type construction
type church
action find_reverse_tuple_counts
relation use
type construction
type construction
value 2
[[{'concept': 'church'}, {'concept': 'construction'}], 'use', {'concept': 'construction'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?c WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:church ) ( ontology:construction ) } } GROUP BY ?c } . FILTER ( ?n >= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P149
Q32880 Q811430
USER
Which architectural styles are approximately 5 constructions an example of ?
(c(Q811430),P149,c(Q32880))
action approx
action find_reverse_tuple_counts
relation P149
type Q32880
type Q811430
value 5
[{'concept': 'Q811430'}, 'P149', {'concept': 'Q32880'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P149 ?f . ?f rdf:type ontology:Q32880 . ?x rdf:type ontology:Q811430 } GROUP BY ?f } . FILTER ( ?t = 5 ) }
action approx
action find_reverse_tuple_counts
relation architectural style
type architectural style
type construction
value 5
[{'concept': 'construction'}, 'architectural style', {'concept': 'architectural style'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:architectural_style ?f . ?f rdf:type ontology:architectural_style . ?x rdf:type ontology:construction } GROUP BY ?f } . FILTER ( ?t = 5 ) }
[]
architectural style construction
Q2568026 Q654057 Q192664
SYSTEM
Viĺnia Baroque, Tuscan order, Doric order
Q660311 Q2568026 Q654057 Q192664
(c(Q811430),P149,c(Q32880))
action approx
action find_reverse_tuple_counts
relation P149
type Q32880
type Q811430
value 5
[ANSWERS] are approximately 5 constructions an example of
[{'concept': 'Q811430'}, 'P149', {'concept': 'Q32880'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P149 ?f . ?f rdf:type ontology:Q32880 . ?x rdf:type ontology:Q811430 } GROUP BY ?f } . FILTER ( ?t = 5 ) }
Art nouveau in Milan Viĺnia Baroque Tuscan order Doric order
Viĺnia Baroque, Tuscan order and Doric order are approximately 5 constructions an example of
Viĺnia Baroque Tuscan order Doric order
action approx
action find_reverse_tuple_counts
relation architectural style
type architectural style
type construction
value 5
[{'concept': 'construction'}, 'architectural style', {'concept': 'architectural style'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:architectural_style ?f . ?f rdf:type ontology:architectural_style . ?x rdf:type ontology:construction } GROUP BY ?f } . FILTER ( ?t = 5 ) }
[]