Simple Question (Direct)
Simple Question
Q8018701
P1412
Q34770
USER
Which language is William Stacpoole capable of writing ?
(Q8018701,P1412,c(Q34770))
action filter_type
action find
entity Q8018701
relation P1412
type Q34770
['Q8018701', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q8018701 property:P1412 ?c . ?c rdf:type ontology:Q34770 }
William Stacpoole
action filter_type
action find
entity William Stacpoole
relation languages spoken, written or signed
type language
['William Stacpoole', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:William_Stacpoole property:languages_spoken,_written_or_signed ?c . ?c rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q8018701,P1412,c(Q34770))
action filter_type
action find
entity Q8018701
relation P1412
type Q34770
[ANSWER] is William Stacpoole capable of writing
['Q8018701', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q8018701 property:P1412 ?c . ?c rdf:type ontology:Q34770 }
English
English is William Stacpoole capable of writing
English
action filter_type
action find
entity William Stacpoole
relation languages spoken, written or signed
type language
['William Stacpoole', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:William_Stacpoole property:languages_spoken,_written_or_signed ?c . ?c rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8018701
P39
Q12737077
USER
What was the position for which William Stacpoole was appointed ?
(Q8018701,P39,c(Q12737077))
action filter_type
action find
entity Q8018701
relation P39
type Q12737077
['Q8018701', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q8018701 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
William Stacpoole
action filter_type
action find
entity William Stacpoole
relation position held
type occupation
['William Stacpoole', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:William_Stacpoole property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q8018701,P39,c(Q12737077))
action filter_type
action find
entity Q8018701
relation P39
type Q12737077
Kingdom [ANSWER]
['Q8018701', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q8018701 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
Kingdom Member of Parliament in the United Kingdom
Member of Parliament in the United Kingdom
action filter_type
action find
entity William Stacpoole
relation position held
type occupation
['William Stacpoole', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:William_Stacpoole property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8018701
P937
Q56061
USER
What is the location where William Stacpoole worked ?
(Q8018701,P937,c(Q56061))
action filter_type
action find
entity Q8018701
relation P937
type Q56061
['Q8018701', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q8018701 property:P937 ?k }
William Stacpoole
action filter_type
action find
entity William Stacpoole
relation work location
type administrative territorial entity
['William Stacpoole', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:William_Stacpoole property:work_location ?k }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q8018701,P937,c(Q56061))
action filter_type
action find
entity Q8018701
relation P937
type Q56061
The location William Stacpoole worked is in [ANSWER]
['Q8018701', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q8018701 property:P937 ?k }
London
The location William Stacpoole worked is in London
London
action filter_type
action find
entity William Stacpoole
relation work location
type administrative territorial entity
['William Stacpoole', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:William_Stacpoole property:work_location ?k }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q9287820 Q8018701
P27
Q15617994
USER
Which administrative territories are the native countriesof William Stacpoole and Henry Cadogan, Viscount Chelsea ?
AND((Q8018701,P27,c(Q15617994)), (Q9287820,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q8018701
relation P27
action find
entity Q9287820
relation P27
type Q15617994
{'AND': [['Q8018701', 'P27', {'concept': 'Q15617994'}], ['Q9287820', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q8018701 property:P27 ?j . resource:Q9287820 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Henry Cadogan, Viscount Chelsea William Stacpoole
action filter_type
action intersection
action find
entity William Stacpoole
relation country of citizenship
action find
entity Henry Cadogan, Viscount Chelsea
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['William Stacpoole', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Henry Cadogan, Viscount Chelsea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:William_Stacpoole property:country_of_citizenship ?j . resource:Henry_Cadogan,_Viscount_Chelsea property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q8018701,P27,c(Q15617994)), (Q9287820,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q8018701
relation P27
action find
entity Q9287820
relation P27
type Q15617994
[ANSWER] is the native countriesof William Stacpoole and Henry Cadogan, Viscount Chelsea
{'AND': [['Q8018701', 'P27', {'concept': 'Q15617994'}], ['Q9287820', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q8018701 property:P27 ?j . resource:Q9287820 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the native countriesof William Stacpoole and Henry Cadogan, Viscount Chelsea
United Kingdom
action filter_type
action intersection
action find
entity William Stacpoole
relation country of citizenship
action find
entity Henry Cadogan, Viscount Chelsea
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['William Stacpoole', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Henry Cadogan, Viscount Chelsea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:William_Stacpoole property:country_of_citizenship ?j . resource:Henry_Cadogan,_Viscount_Chelsea property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { ?c property:P530 ?f . ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?q = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { ?c property:diplomatic_relation ?f . ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?q = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] hold diplomatic relationship with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { ?c property:P530 ?f . ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?q = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas hold diplomatic relationship with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { ?c property:diplomatic_relation ?f . ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?q = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q9287820
P27
Q15617994
USER
How many administrative territories are Henry Cadogan, Viscount Chelsea an inhabitant of ?
(Q9287820,P27,c(Q15617994))
action count
action filter_type
action find
entity Q9287820
relation P27
type Q15617994
['Q9287820', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Q9287820 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Henry Cadogan, Viscount Chelsea
action count
action filter_type
action find
entity Henry Cadogan, Viscount Chelsea
relation country of citizenship
type designation for an administrative territorial entity
['Henry Cadogan, Viscount Chelsea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Henry_Cadogan,_Viscount_Chelsea property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q9287820,P27,c(Q15617994))
action count
action filter_type
action find
entity Q9287820
relation P27
type Q15617994
[ANSWER]
['Q9287820', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Q9287820 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity Henry Cadogan, Viscount Chelsea
relation country of citizenship
type designation for an administrative territorial entity
['Henry Cadogan, Viscount Chelsea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Henry_Cadogan,_Viscount_Chelsea property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5560612
Q15617994
USER
And also tell me about Gil Shohat?
(Q5560612,P27,c(Q15617994))
action count
action filter_type
action find
entity Q5560612
relation P27
type Q15617994
['Q5560612', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Q5560612 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Gil Shohat
action count
action filter_type
action find
entity Gil Shohat
relation country of citizenship
type designation for an administrative territorial entity
['Gil Shohat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Gil_Shohat property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q5560612,P27,c(Q15617994))
action count
action filter_type
action find
entity Q5560612
relation P27
type Q15617994
[ANSWER]
['Q5560612', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Q5560612 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Gil Shohat
relation country of citizenship
type designation for an administrative territorial entity
['Gil Shohat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { resource:Gil_Shohat property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q778
P20
Q502895
USER
Who died in The Bahamas ?
(c(Q502895),P20,Q778)
action filter_type
action find_reverse
entity Q778
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q778']
SELECT DISTINCT ?e WHERE { ?e property:P20 resource:Q778 . ?e rdf:type ontology:Q502895 }
The Bahamas
action filter_type
action find_reverse
entity The Bahamas
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'The Bahamas']
SELECT DISTINCT ?e WHERE { ?e property:place_of_death resource:The_Bahamas . ?e rdf:type ontology:common_name }
[]
common name
Q1361609 Q3568586 Q1178414
SYSTEM
Errol Brown, William Eckert, Davy Kaye
Q1361609 Q15215665 Q3568934 Q3568586 Q16022936 Q1178414
(c(Q502895),P20,Q778)
action filter_type
action find_reverse
entity Q778
relation P20
type Q502895
[ANSWERS] died in The Bahamas
[{'concept': 'Q502895'}, 'P20', 'Q778']
SELECT DISTINCT ?e WHERE { ?e property:P20 resource:Q778 . ?e rdf:type ontology:Q502895 }
Errol Brown Nicholas Mevoli William Sayle William Eckert James Ramsey Davy Kaye
Errol Brown, William Eckert and Davy Kaye died in The Bahamas
Errol Brown William Eckert Davy Kaye
action filter_type
action find_reverse
entity The Bahamas
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'The Bahamas']
SELECT DISTINCT ?e WHERE { ?e property:place_of_death resource:The_Bahamas . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q778
P36
Q56061
USER
Which administrative territory is the capital of The Bahamas ?
(Q778,P36,c(Q56061))
action filter_type
action find
entity Q778
relation P36
type Q56061
['Q778', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q778 property:P36 ?v . ?v rdf:type ontology:Q56061 }
The Bahamas
action filter_type
action find
entity The Bahamas
relation capital
type administrative territorial entity
['The Bahamas', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:The_Bahamas property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2467
SYSTEM
Nassau
Q2467
(Q778,P36,c(Q56061))
action filter_type
action find
entity Q778
relation P36
type Q56061
[ANSWER] is the capital of The Bahamas
['Q778', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q778 property:P36 ?v . ?v rdf:type ontology:Q56061 }
Nassau
Nassau is the capital of The Bahamas
Nassau
action filter_type
action find
entity The Bahamas
relation capital
type administrative territorial entity
['The Bahamas', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:The_Bahamas property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q778
P1532
Q1194951
USER
Who represents The Bahamas ?
(c(Q1194951),P1532,Q778)
action filter_type
action find_reverse
entity Q778
relation P1532
type Q1194951
[{'concept': 'Q1194951'}, 'P1532', 'Q778']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1194951 . ?o property:P1532 resource:Q778 }
The Bahamas
action filter_type
action find_reverse
entity The Bahamas
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'The Bahamas']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:national_sports_team . ?o property:country_for_sport resource:The_Bahamas }
[]
national sports team
Q244590
SYSTEM
Bahamas national football team
Q244590
(c(Q1194951),P1532,Q778)
action filter_type
action find_reverse
entity Q778
relation P1532
type Q1194951
And [ANSWER] represents The Bahamas
[{'concept': 'Q1194951'}, 'P1532', 'Q778']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1194951 . ?o property:P1532 resource:Q778 }
Bahamas national football team
And Bahamas national football team represents The Bahamas
Bahamas national football team
action filter_type
action find_reverse
entity The Bahamas
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'The Bahamas']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:national_sports_team . ?o property:country_for_sport resource:The_Bahamas }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q778
P1376
Q56061
USER
Which administrative territory is the capital of The Bahamas ?
(c(Q56061),P1376,Q778)
action filter_type
action find_reverse
entity Q778
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q778']
SELECT DISTINCT ?e WHERE { ?e property:P1376 resource:Q778 . ?e rdf:type ontology:Q56061 }
The Bahamas
action filter_type
action find_reverse
entity The Bahamas
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'The Bahamas']
SELECT DISTINCT ?e WHERE { ?e property:capital_of resource:The_Bahamas . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2467
SYSTEM
Nassau
Q2467
(c(Q56061),P1376,Q778)
action filter_type
action find_reverse
entity Q778
relation P1376
type Q56061
[ANSWER] is the capital of The Bahamas
[{'concept': 'Q56061'}, 'P1376', 'Q778']
SELECT DISTINCT ?e WHERE { ?e property:P1376 resource:Q778 . ?e rdf:type ontology:Q56061 }
Nassau
Nassau is the capital of The Bahamas
Nassau
action filter_type
action find_reverse
entity The Bahamas
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'The Bahamas']
SELECT DISTINCT ?e WHERE { ?e property:capital_of resource:The_Bahamas . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P85
Q7725634
USER
Which literary work is the anthem for United Kingdom ?
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?n WHERE { resource:Q145 property:P85 ?n . ?n rdf:type ontology:Q7725634 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?n WHERE { resource:United_Kingdom property:anthem ?n . ?n rdf:type ontology:literary_work }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
God save the Queen is the anthem for United Kingdom
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?n WHERE { resource:Q145 property:P85 ?n . ?n rdf:type ontology:Q7725634 }
God Save the Queen
God save the Queen is the anthem for United Kingdom
God Save the Queen
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?n WHERE { resource:United_Kingdom property:anthem ?n . ?n rdf:type ontology:literary_work }
[]