Simple Question (Direct)
Simple Question
Q5539886
P102
Q7210356
USER
Which political organization is George Green Foster a member of ?
(Q5539886,P102,c(Q7210356))
action filter_type
action find
entity Q5539886
relation P102
type Q7210356
['Q5539886', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q7210356 . resource:Q5539886 property:P102 ?v }
George Green Foster
action filter_type
action find
entity George Green Foster
relation member of political party
type political organization
['George Green Foster', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_organization . resource:George_Green_Foster property:member_of_political_party ?v }
[]
political organization
Q909827
SYSTEM
Conservative Party of Canada
Q909827
(Q5539886,P102,c(Q7210356))
action filter_type
action find
entity Q5539886
relation P102
type Q7210356
Party [ANSWER] is George Green Foster a member of
['Q5539886', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q7210356 . resource:Q5539886 property:P102 ?v }
Conservative Party of Canada
Party Conservative Party of Canada is George Green Foster a member of
Conservative Party of Canada
action filter_type
action find
entity George Green Foster
relation member of political party
type political organization
['George Green Foster', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_organization . resource:George_Green_Foster property:member_of_political_party ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5539886
P39
Q12737077
USER
What was the position for which George Green Foster was appointed ?
(Q5539886,P39,c(Q12737077))
action filter_type
action find
entity Q5539886
relation P39
type Q12737077
['Q5539886', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5539886 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
George Green Foster
action filter_type
action find
entity George Green Foster
relation position held
type occupation
['George Green Foster', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:George_Green_Foster property:position_held ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q18524027
SYSTEM
Member of the Senate of Canada
Q18524027
(Q5539886,P39,c(Q12737077))
action filter_type
action find
entity Q5539886
relation P39
type Q12737077
[ANSWER]
['Q5539886', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5539886 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Member of the Senate of Canada
Member of the Senate of Canada
Member of the Senate of Canada
action filter_type
action find
entity George Green Foster
relation position held
type occupation
['George Green Foster', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:George_Green_Foster property:position_held ?s . ?s rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q18524027 Q6068292
P39
Q502895
USER
Was Pedro Bejarano Palacios responsible for occupying the position of that occupation ?
(Q6068292,P39,Q18524027)
action is_in
entity Q6068292
action find
entity Q18524027
relation P39
['Q6068292', 'P39', 'Q18524027']
ASK WHERE { resource:Q18524027 property:P39 resource:Q6068292 }
Member of the Senate of Canada Pedro Bejarano Palacios
action is_in
entity Pedro Bejarano Palacios
action find
entity Member of the Senate of Canada
relation position held
['Pedro Bejarano Palacios', 'position held', 'Member of the Senate of Canada']
ASK WHERE { resource:Member_of_the_Senate_of_Canada property:position_held resource:Pedro_Bejarano_Palacios }
[]
common name
SYSTEM
NO
(Q6068292,P39,Q18524027)
action is_in
entity Q6068292
action find
entity Q18524027
relation P39
[ANSWER]
['Q6068292', 'P39', 'Q18524027']
ASK WHERE { resource:Q18524027 property:P39 resource:Q6068292 }
No
action is_in
entity Pedro Bejarano Palacios
action find
entity Member of the Senate of Canada
relation position held
['Pedro Bejarano Palacios', 'position held', 'Member of the Senate of Canada']
ASK WHERE { resource:Member_of_the_Senate_of_Canada property:position_held resource:Pedro_Bejarano_Palacios }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5539886 Q16 Q111470
P27
Q1048835
USER
Is George Green Foster a civilian of Canada and Freixinho ?
(Q5539886,P27,Q16) (Q5539886,P27,Q111470)
action is_in
entity Q5539886
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q111470
relation P27
['Q5539886', 'P27', 'Q16'] ['Q5539886', 'P27', 'Q111470']
ASK WHERE { resource:Q5539886 property:P27 resource:Q16 . resource:Q5539886 property:P27 resource:Q111470 }
George Green Foster Canada Freixinho
action is_in
entity George Green Foster
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Freixinho
relation country of citizenship
['George Green Foster', 'country of citizenship', 'Canada'] ['George Green Foster', 'country of citizenship', 'Freixinho']
ASK WHERE { resource:George_Green_Foster property:country_of_citizenship resource:Canada . resource:George_Green_Foster property:country_of_citizenship resource:Freixinho }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q5539886,P27,Q16) (Q5539886,P27,Q111470)
action is_in
entity Q5539886
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q111470
relation P27
[ANSWER]
['Q5539886', 'P27', 'Q16'] ['Q5539886', 'P27', 'Q111470']
ASK WHERE { resource:Q5539886 property:P27 resource:Q16 . resource:Q5539886 property:P27 resource:Q111470 }
YES and NO respectively
action is_in
entity George Green Foster
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Freixinho
relation country of citizenship
['George Green Foster', 'country of citizenship', 'Canada'] ['George Green Foster', 'country of citizenship', 'Freixinho']
ASK WHERE { resource:George_Green_Foster property:country_of_citizenship resource:Canada . resource:George_Green_Foster property:country_of_citizenship resource:Freixinho }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18217568 Q5539886
P27
Q1048835
USER
Which political territories are the countries of citizenship of George Green Foster or Guy LeBlanc ?
OR((Q5539886,P27,c(Q1048835)), (Q18217568,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5539886
relation P27
action find
entity Q18217568
relation P27
type Q1048835
{'OR': [['Q5539886', 'P27', {'concept': 'Q1048835'}], ['Q18217568', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5539886 property:P27 ?h } UNION { resource:Q18217568 property:P27 ?h } } . ?h rdf:type ontology:Q1048835 }
Guy LeBlanc George Green Foster
action filter_type
action union
action find
entity George Green Foster
relation country of citizenship
action find
entity Guy LeBlanc
relation country of citizenship
type political territorial entity
{'OR': [['George Green Foster', 'country of citizenship', {'concept': 'political territorial entity'}], ['Guy LeBlanc', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:George_Green_Foster property:country_of_citizenship ?h } UNION { resource:Guy_LeBlanc property:country_of_citizenship ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
OR((Q5539886,P27,c(Q1048835)), (Q18217568,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5539886
relation P27
action find
entity Q18217568
relation P27
type Q1048835
[ANSWER] is the countries of citizenship of George Green Foster or Guy LeBlanc
{'OR': [['Q5539886', 'P27', {'concept': 'Q1048835'}], ['Q18217568', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q5539886 property:P27 ?h } UNION { resource:Q18217568 property:P27 ?h } } . ?h rdf:type ontology:Q1048835 }
Canada
Canada is the countries of citizenship of George Green Foster or Guy LeBlanc
Canada
action filter_type
action union
action find
entity George Green Foster
relation country of citizenship
action find
entity Guy LeBlanc
relation country of citizenship
type political territorial entity
{'OR': [['George Green Foster', 'country of citizenship', {'concept': 'political territorial entity'}], ['Guy LeBlanc', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:George_Green_Foster property:country_of_citizenship ?h } UNION { resource:Guy_LeBlanc property:country_of_citizenship ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q18217568
P27
Q1048835
USER
How many political territories are Guy LeBlanc an inhabitant of ?
(Q18217568,P27,c(Q1048835))
action count
action filter_type
action find
entity Q18217568
relation P27
type Q1048835
['Q18217568', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q18217568 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Guy LeBlanc
action count
action filter_type
action find
entity Guy LeBlanc
relation country of citizenship
type political territorial entity
['Guy LeBlanc', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Guy_LeBlanc property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q16
(Q18217568,P27,c(Q1048835))
action count
action filter_type
action find
entity Q18217568
relation P27
type Q1048835
[ANSWER]
['Q18217568', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q18217568 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Canada
1
action count
action filter_type
action find
entity Guy LeBlanc
relation country of citizenship
type political territorial entity
['Guy LeBlanc', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Guy_LeBlanc property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q21033954
Q1048835
USER
And how about Rudolf Giersch?
(Q21033954,P27,c(Q1048835))
action count
action filter_type
action find
entity Q21033954
relation P27
type Q1048835
['Q21033954', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q1048835 . resource:Q21033954 property:P27 ?n }
Rudolf Giersch
action count
action filter_type
action find
entity Rudolf Giersch
relation country of citizenship
type political territorial entity
['Rudolf Giersch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Rudolf_Giersch property:country_of_citizenship ?n }
[]
political territorial entity
SYSTEM
1
(Q21033954,P27,c(Q1048835))
action count
action filter_type
action find
entity Q21033954
relation P27
type Q1048835
[ANSWER]
['Q21033954', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q1048835 . resource:Q21033954 property:P27 ?n }
1
action count
action filter_type
action find
entity Rudolf Giersch
relation country of citizenship
type political territorial entity
['Rudolf Giersch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Rudolf_Giersch property:country_of_citizenship ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21033954
P641
Q349
USER
Which sport did that person participate in ?
action filter_type
action find
entity Q21033954
relation P641
type Q349
SELECT DISTINCT ?n WHERE { resource:Q21033954 property:P641 ?n . ?n rdf:type ontology:Q349 }
Rudolf Giersch
action filter_type
action find
entity Rudolf Giersch
relation sport
type sport
SELECT DISTINCT ?n WHERE { resource:Rudolf_Giersch property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
action filter_type
action find
entity Q21033954
relation P641
type Q349
That person participated in [ANSWER]
SELECT DISTINCT ?n WHERE { resource:Q21033954 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Rudolf Giersch
relation sport
type sport
SELECT DISTINCT ?n WHERE { resource:Rudolf_Giersch property:sport ?n . ?n rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q7410820
P641
Q502895
USER
Does Samuel B. Booth play that sport ?
(Q7410820,P641,Q2736)
action is_in
entity Q7410820
action find
entity Q2736
relation P641
['Q7410820', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q7410820 }
association football Samuel B. Booth
action is_in
entity Samuel B. Booth
action find
entity association football
relation sport
['Samuel B. Booth', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Samuel_B._Booth }
[]
common name
SYSTEM
NO
(Q7410820,P641,Q2736)
action is_in
entity Q7410820
action find
entity Q2736
relation P641
[ANSWER]
['Q7410820', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q7410820 }
No
action is_in
entity Samuel B. Booth
action find
entity association football
relation sport
['Samuel B. Booth', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Samuel_B._Booth }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5539886 Q1641340
P27
Q1048835
USER
Is Segurilla the native country of George Green Foster ?
(Q5539886,P27,Q1641340)
action is_in
entity Q1641340
action find
entity Q5539886
relation P27
['Q5539886', 'P27', 'Q1641340']
ASK WHERE { resource:Q5539886 property:P27 resource:Q1641340 }
George Green Foster Segurilla
action is_in
entity Segurilla
action find
entity George Green Foster
relation country of citizenship
['George Green Foster', 'country of citizenship', 'Segurilla']
ASK WHERE { resource:George_Green_Foster property:country_of_citizenship resource:Segurilla }
[]
political territorial entity
SYSTEM
NO
(Q5539886,P27,Q1641340)
action is_in
entity Q1641340
action find
entity Q5539886
relation P27
[ANSWER]
['Q5539886', 'P27', 'Q1641340']
ASK WHERE { resource:Q5539886 property:P27 resource:Q1641340 }
No
action is_in
entity Segurilla
action find
entity George Green Foster
relation country of citizenship
['George Green Foster', 'country of citizenship', 'Segurilla']
ASK WHERE { resource:George_Green_Foster property:country_of_citizenship resource:Segurilla }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q18524027 Q4230288 Q16
P17
Q1048835
USER
Is Member of the Senate of Canada present in Solontsi and Canada ?
(Q18524027,P17,Q4230288) (Q18524027,P17,Q16)
action is_in
entity Q18524027
action intersection
action find_reverse
entity Q4230288
relation P17
action find_reverse
entity Q16
relation P17
['Q18524027', 'P17', 'Q4230288'] ['Q18524027', 'P17', 'Q16']
ASK WHERE { resource:Q18524027 property:P17 resource:Q4230288 . resource:Q18524027 property:P17 resource:Q16 }
Member of the Senate of Canada Solontsi Canada
action is_in
entity Member of the Senate of Canada
action intersection
action find_reverse
entity Solontsi
relation country
action find_reverse
entity Canada
relation country
['Member of the Senate of Canada', 'country', 'Solontsi'] ['Member of the Senate of Canada', 'country', 'Canada']
ASK WHERE { resource:Member_of_the_Senate_of_Canada property:country resource:Solontsi . resource:Member_of_the_Senate_of_Canada property:country resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q18524027,P17,Q4230288) (Q18524027,P17,Q16)
action is_in
entity Q18524027
action intersection
action find_reverse
entity Q4230288
relation P17
action find_reverse
entity Q16
relation P17
[ANSWER]
['Q18524027', 'P17', 'Q4230288'] ['Q18524027', 'P17', 'Q16']
ASK WHERE { resource:Q18524027 property:P17 resource:Q4230288 . resource:Q18524027 property:P17 resource:Q16 }
NO and YES respectively
action is_in
entity Member of the Senate of Canada
action intersection
action find_reverse
entity Solontsi
relation country
action find_reverse
entity Canada
relation country
['Member of the Senate of Canada', 'country', 'Solontsi'] ['Member of the Senate of Canada', 'country', 'Canada']
ASK WHERE { resource:Member_of_the_Senate_of_Canada property:country resource:Solontsi . resource:Member_of_the_Senate_of_Canada property:country resource:Canada }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q836
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with less number of political territories than Myanmar ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q836
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q836 property:P530 ?c } } }
Myanmar
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Myanmar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Myanmar property:diplomatic_relation ?c } } }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q836
relation P530
type Q1048835
[ANSWERS] have a diplomatic relationship with less number of political territories than Myanmar
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q836 property:P530 ?c } } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have a diplomatic relationship with less number of political territories than Myanmar
Yemen Syria Oman
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Myanmar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?m < ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Myanmar property:diplomatic_relation ?c } } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q909827 Q978148
P17
Q1048835
USER
Is Conservative Party of Canada located in Paraíso do Tocantins ?
(Q909827,P17,Q978148)
action is_in
entity Q978148
action find
entity Q909827
relation P17
['Q909827', 'P17', 'Q978148']
ASK WHERE { resource:Q909827 property:P17 resource:Q978148 }
Conservative Party of Canada Paraíso do Tocantins
action is_in
entity Paraíso do Tocantins
action find
entity Conservative Party of Canada
relation country
['Conservative Party of Canada', 'country', 'Paraíso do Tocantins']
ASK WHERE { resource:Conservative_Party_of_Canada property:country resource:Paraíso_do_Tocantins }
[]
political territorial entity
SYSTEM
NO
(Q909827,P17,Q978148)
action is_in
entity Q978148
action find
entity Q909827
relation P17
[ANSWER]
['Q909827', 'P17', 'Q978148']
ASK WHERE { resource:Q909827 property:P17 resource:Q978148 }
No
action is_in
entity Paraíso do Tocantins
action find
entity Conservative Party of Canada
relation country
['Conservative Party of Canada', 'country', 'Paraíso do Tocantins']
ASK WHERE { resource:Conservative_Party_of_Canada property:country resource:Paraíso_do_Tocantins }
[]