Simple Question (Direct)
Simple Question
Q3372662
P1344
Q15900616
USER
Which event sequence did Paulin Bordeleau participate in ?
(Q3372662,P1344,c(Q15900616))
action filter_type
action find
entity Q3372662
relation P1344
type Q15900616
['Q3372662', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15900616 . resource:Q3372662 property:P1344 ?g }
Paulin Bordeleau
action filter_type
action find
entity Paulin Bordeleau
relation participant of
type event sequence
['Paulin Bordeleau', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:event_sequence . resource:Paulin_Bordeleau property:participant_of ?g }
[]
event sequence
Q9658
SYSTEM
1988 Winter Olympics
Q9658
(Q3372662,P1344,c(Q15900616))
action filter_type
action find
entity Q3372662
relation P1344
type Q15900616
Paulin Bordeleau participated in [ANSWER]
['Q3372662', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15900616 . resource:Q3372662 property:P1344 ?g }
1988 Winter Olympics
Paulin Bordeleau participated in 1988 Winter Olympics
1988 Winter Olympics
action filter_type
action find
entity Paulin Bordeleau
relation participant of
type event sequence
['Paulin Bordeleau', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:event_sequence . resource:Paulin_Bordeleau property:participant_of ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9658
P276
Q1076486
USER
Which sports venue is the place where that event sequence is located ?
(Q9658,P276,c(Q1076486))
action filter_type
action find
entity Q9658
relation P276
type Q1076486
['Q9658', 'P276', {'concept': 'Q1076486'}]
SELECT DISTINCT ?r WHERE { resource:Q9658 property:P276 ?r . ?r rdf:type ontology:Q1076486 }
1988 Winter Olympics
action filter_type
action find
entity 1988 Winter Olympics
relation location
type sports venue
['1988 Winter Olympics', 'location', {'concept': 'sports venue'}]
SELECT DISTINCT ?r WHERE { resource:1988_Winter_Olympics property:location ?r . ?r rdf:type ontology:sports_venue }
[]
sports venue
Q1810204
SYSTEM
McMahon Stadium
Q1810204
(Q9658,P276,c(Q1076486))
action filter_type
action find
entity Q9658
relation P276
type Q1076486
[ANSWER] is the place where that event sequence is located
['Q9658', 'P276', {'concept': 'Q1076486'}]
SELECT DISTINCT ?r WHERE { resource:Q9658 property:P276 ?r . ?r rdf:type ontology:Q1076486 }
McMahon Stadium
McMahon Stadium is the place where that event sequence is located
McMahon Stadium
action filter_type
action find
entity 1988 Winter Olympics
relation location
type sports venue
['1988 Winter Olympics', 'location', {'concept': 'sports venue'}]
SELECT DISTINCT ?r WHERE { resource:1988_Winter_Olympics property:location ?r . ?r rdf:type ontology:sports_venue }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1810204 Q16 Q4190818
P17
Q1048835
USER
Is that sports venue situated in Canada and Zelenyi Hai ?
(Q1810204,P17,Q16) (Q1810204,P17,Q4190818)
action is_in
entity Q1810204
action intersection
action find_reverse
entity Q16
relation P17
action find_reverse
entity Q4190818
relation P17
['Q1810204', 'P17', 'Q16'] ['Q1810204', 'P17', 'Q4190818']
ASK WHERE { resource:Q1810204 property:P17 resource:Q16 . resource:Q1810204 property:P17 resource:Q4190818 }
McMahon Stadium Canada Zelenyi Hai
action is_in
entity McMahon Stadium
action intersection
action find_reverse
entity Canada
relation country
action find_reverse
entity Zelenyi Hai
relation country
['McMahon Stadium', 'country', 'Canada'] ['McMahon Stadium', 'country', 'Zelenyi Hai']
ASK WHERE { resource:McMahon_Stadium property:country resource:Canada . resource:McMahon_Stadium property:country resource:Zelenyi_Hai }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q1810204,P17,Q16) (Q1810204,P17,Q4190818)
action is_in
entity Q1810204
action intersection
action find_reverse
entity Q16
relation P17
action find_reverse
entity Q4190818
relation P17
[ANSWER]
['Q1810204', 'P17', 'Q16'] ['Q1810204', 'P17', 'Q4190818']
ASK WHERE { resource:Q1810204 property:P17 resource:Q16 . resource:Q1810204 property:P17 resource:Q4190818 }
YES and NO respectively
action is_in
entity McMahon Stadium
action intersection
action find_reverse
entity Canada
relation country
action find_reverse
entity Zelenyi Hai
relation country
['McMahon Stadium', 'country', 'Canada'] ['McMahon Stadium', 'country', 'Zelenyi Hai']
ASK WHERE { resource:McMahon_Stadium property:country resource:Canada . resource:McMahon_Stadium property:country resource:Zelenyi_Hai }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q9658 Q4180962 Q16
P17
Q1048835
USER
Is 1988 Winter Olympics situated in Matyldivka and Canada ?
(Q9658,P17,Q4180962) (Q9658,P17,Q16)
action is_in
entity Q9658
action intersection
action find_reverse
entity Q4180962
relation P17
action find_reverse
entity Q16
relation P17
['Q9658', 'P17', 'Q4180962'] ['Q9658', 'P17', 'Q16']
ASK WHERE { resource:Q9658 property:P17 resource:Q16 . resource:Q9658 property:P17 resource:Q4180962 }
1988 Winter Olympics Matyldivka Canada
action is_in
entity 1988 Winter Olympics
action intersection
action find_reverse
entity Matyldivka
relation country
action find_reverse
entity Canada
relation country
['1988 Winter Olympics', 'country', 'Matyldivka'] ['1988 Winter Olympics', 'country', 'Canada']
ASK WHERE { resource:1988_Winter_Olympics property:country resource:Canada . resource:1988_Winter_Olympics property:country resource:Matyldivka }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q9658,P17,Q4180962) (Q9658,P17,Q16)
action is_in
entity Q9658
action intersection
action find_reverse
entity Q4180962
relation P17
action find_reverse
entity Q16
relation P17
[ANSWER]
['Q9658', 'P17', 'Q4180962'] ['Q9658', 'P17', 'Q16']
ASK WHERE { resource:Q9658 property:P17 resource:Q16 . resource:Q9658 property:P17 resource:Q4180962 }
NO and YES respectively
action is_in
entity 1988 Winter Olympics
action intersection
action find_reverse
entity Matyldivka
relation country
action find_reverse
entity Canada
relation country
['1988 Winter Olympics', 'country', 'Matyldivka'] ['1988 Winter Olympics', 'country', 'Canada']
ASK WHERE { resource:1988_Winter_Olympics property:country resource:Canada . resource:1988_Winter_Olympics property:country resource:Matyldivka }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7970379 Q3372662
P27
Q1048835
USER
Which political territories do Paulin Bordeleau or Warren McDonald belong to ?
OR((Q3372662,P27,c(Q1048835)), (Q7970379,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q3372662
relation P27
action find
entity Q7970379
relation P27
type Q1048835
{'OR': [['Q3372662', 'P27', {'concept': 'Q1048835'}], ['Q7970379', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Q3372662 ) ( resource:Q7970379 ) } . ?g property:P27 ?m } . ?m rdf:type ontology:Q1048835 }
Warren McDonald Paulin Bordeleau
action filter_type
action union
action find
entity Paulin Bordeleau
relation country of citizenship
action find
entity Warren McDonald
relation country of citizenship
type political territorial entity
{'OR': [['Paulin Bordeleau', 'country of citizenship', {'concept': 'political territorial entity'}], ['Warren McDonald', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Paulin_Bordeleau ) ( resource:Warren_McDonald ) } . ?g property:country_of_citizenship ?m } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408
SYSTEM
Canada, Australia
Q16 Q408
OR((Q3372662,P27,c(Q1048835)), (Q7970379,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q3372662
relation P27
action find
entity Q7970379
relation P27
type Q1048835
Paulin Bordeleau or Warren McDonald belong to both [ANSWERS]
{'OR': [['Q3372662', 'P27', {'concept': 'Q1048835'}], ['Q7970379', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Q3372662 ) ( resource:Q7970379 ) } . ?g property:P27 ?m } . ?m rdf:type ontology:Q1048835 }
Canada Australia
Paulin Bordeleau or Warren McDonald belong to both Canada and Australia
Canada Australia
action filter_type
action union
action find
entity Paulin Bordeleau
relation country of citizenship
action find
entity Warren McDonald
relation country of citizenship
type political territorial entity
{'OR': [['Paulin Bordeleau', 'country of citizenship', {'concept': 'political territorial entity'}], ['Warren McDonald', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?g ) { ( resource:Paulin_Bordeleau ) ( resource:Warren_McDonald ) } . ?g property:country_of_citizenship ?m } . ?m rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q544270
P495
Q15416
USER
Did Vicky & Johnny originate in those political territories ?
(Q544270,P495,Q16) (Q544270,P495,Q408)
action is_in
entity prev_answer
action find
entity Q544270
relation P495
['Q544270', 'P495', 'Q16'] ['Q544270', 'P495', 'Q408']
ASK WHERE { VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q408 ) } . resource:Q544270 property:P495 ?t }
Vicky & Johnny
action is_in
entity prev_answer
action find
entity Vicky & Johnny
relation country of origin
['Vicky & Johnny', 'country of origin', 'Canada'] ['Vicky & Johnny', 'country of origin', 'Australia']
ASK WHERE { VALUES ( ?t ) { ( resource:Canada ) ( resource:Australia ) } . resource:Vicky_&_Johnny property:country_of_origin ?t }
[]
television program
SYSTEM
NO
(Q544270,P495,Q16) (Q544270,P495,Q408)
action is_in
entity prev_answer
action find
entity Q544270
relation P495
[ANSWER]
['Q544270', 'P495', 'Q16'] ['Q544270', 'P495', 'Q408']
ASK WHERE { VALUES ( ?t ) { ( resource:Q16 ) ( resource:Q408 ) } . resource:Q544270 property:P495 ?t }
No
action is_in
entity prev_answer
action find
entity Vicky & Johnny
relation country of origin
['Vicky & Johnny', 'country of origin', 'Canada'] ['Vicky & Johnny', 'country of origin', 'Australia']
ASK WHERE { VALUES ( ?t ) { ( resource:Canada ) ( resource:Australia ) } . resource:Vicky_&_Johnny property:country_of_origin ?t }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?n ) WHERE { ?k property:P530 ?z . ?k rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?r ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?r ) WHERE { ?s property:P530 ?f . ?s rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?s } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?n ) WHERE { ?k property:diplomatic_relation ?z . ?k rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?r ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?r ) WHERE { ?s property:diplomatic_relation ?f . ?s rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?s } } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
To [ANSWER] have ambassadorial relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?n ) WHERE { ?k property:P530 ?z . ?k rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?r ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?r ) WHERE { ?s property:P530 ?f . ?s rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?s } } }
Australia
To Australia have ambassadorial relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?n ) WHERE { ?k property:diplomatic_relation ?z . ?k rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?r ) AS ?q ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?r ) WHERE { ?s property:diplomatic_relation ?f . ?s rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?s } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q19315692 Q408
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Australia and do Kuiperij belong to ?
AND((Q408,P530,c(Q15617994)), (Q19315692,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q408
relation P530
action find
entity Q19315692
relation P17
type Q15617994
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q19315692', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { resource:Q408 property:P530 ?z . resource:Q19315692 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Kuiperij Australia
action filter_type
action intersection
action find
entity Australia
relation diplomatic relation
action find
entity Kuiperij
relation country
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kuiperij', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { resource:Australia property:diplomatic_relation ?z . resource:Kuiperij property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
AND((Q408,P530,c(Q15617994)), (Q19315692,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q408
relation P530
action find
entity Q19315692
relation P17
type Q15617994
[ANSWER] have diplomatic relationships with Australia and do Kuiperij belong to
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q19315692', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { resource:Q408 property:P530 ?z . resource:Q19315692 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Netherlands
Netherlands have diplomatic relationships with Australia and do Kuiperij belong to
Netherlands
action filter_type
action intersection
action find
entity Australia
relation diplomatic relation
action find
entity Kuiperij
relation country
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kuiperij', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { resource:Australia property:diplomatic_relation ?z . resource:Kuiperij property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]