Simple Question (Direct)
Simple Question
Q5300361
P734
Q82799
USER
Which name is associated with Doug Christie ?
(Q5300361,P734,c(Q82799))
action filter_type
action find
entity Q5300361
relation P734
type Q82799
['Q5300361', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q5300361 property:P734 ?q . ?q rdf:type ontology:Q82799 }
Doug Christie
action filter_type
action find
entity Doug Christie
relation family name
type name
['Doug Christie', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Doug_Christie property:family_name ?q . ?q rdf:type ontology:name }
[]
name
Q13632220
SYSTEM
Christie
Q13632220
(Q5300361,P734,c(Q82799))
action filter_type
action find
entity Q5300361
relation P734
type Q82799
The [ANSWER] is associated with Doug [ANSWER]
['Q5300361', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q5300361 property:P734 ?q . ?q rdf:type ontology:Q82799 }
Christie
The Christie is associated with Doug Christie
Christie
action filter_type
action find
entity Doug Christie
relation family name
type name
['Doug Christie', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Doug_Christie property:family_name ?q . ?q rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5300361
P39
Q7278
USER
Which political party was a position held by Doug Christie ?
(Q5300361,P39,c(Q7278))
action filter_type
action find
entity Q5300361
relation P39
type Q7278
['Q5300361', 'P39', {'concept': 'Q7278'}]
SELECT DISTINCT ?t WHERE { resource:Q5300361 property:P39 ?t . ?t rdf:type ontology:Q7278 }
Doug Christie
action filter_type
action find
entity Doug Christie
relation position held
type political party
['Doug Christie', 'position held', {'concept': 'political party'}]
SELECT DISTINCT ?t WHERE { resource:Doug_Christie property:position_held ?t . ?t rdf:type ontology:political_party }
[]
political party
Q3567486
SYSTEM
Western Block Party
Q3567486
(Q5300361,P39,c(Q7278))
action filter_type
action find
entity Q5300361
relation P39
type Q7278
[ANSWER] was a position held by Doug Christie
['Q5300361', 'P39', {'concept': 'Q7278'}]
SELECT DISTINCT ?t WHERE { resource:Q5300361 property:P39 ?t . ?t rdf:type ontology:Q7278 }
Western Block Party
Western Block Party was a position held by Doug Christie
Western Block Party
action filter_type
action find
entity Doug Christie
relation position held
type political party
['Doug Christie', 'position held', {'concept': 'political party'}]
SELECT DISTINCT ?t WHERE { resource:Doug_Christie property:position_held ?t . ?t rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3567486
P1001
Q1048835
USER
Which political territory comes under the jurisdiction of that political party ?
(Q3567486,P1001,c(Q1048835))
action filter_type
action find
entity Q3567486
relation P1001
type Q1048835
['Q3567486', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q3567486 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
Western Block Party
action filter_type
action find
entity Western Block Party
relation applies to jurisdiction
type political territorial entity
['Western Block Party', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Western_Block_Party property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3567486,P1001,c(Q1048835))
action filter_type
action find
entity Q3567486
relation P1001
type Q1048835
[ANSWER] comes under the jurisdiction of that political party
['Q3567486', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q3567486 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
Canada
Canada comes under the jurisdiction of that political party
Canada
action filter_type
action find
entity Western Block Party
relation applies to jurisdiction
type political territorial entity
['Western Block Party', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Western_Block_Party property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
Which political territories are the native countriesof approximately the same number of people as that political territory ?
(c(Q502895),P27,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P27
type Q1048835
type Q502895
action count
action filter_type
action find
entity Q16
relation P27
type Q1048835
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P27 ?e . ?e rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Q16 property:P27 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?i = ?h ) }
action approx
action find_reverse_tuple_counts
relation country of citizenship
type political territorial entity
type common name
action count
action filter_type
action find
entity Canada
relation country of citizenship
type political territorial entity
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Canada property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?i = ?h ) }
[]
political territorial entity common name
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q16 Q35 Q40 Q408
(c(Q502895),P27,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P27
type Q1048835
type Q502895
action count
action filter_type
action find
entity Q16
relation P27
type Q1048835
[ANSWERS] are the native countriesof approximately the same number of people as that political territory
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P27 ?e . ?e rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Q16 property:P27 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?i = ?h ) }
Canada Denmark Austria Australia
Australia, Denmark and Canada are the native countriesof approximately the same number of people as that political territory
Australia Denmark Canada
action approx
action find_reverse_tuple_counts
relation country of citizenship
type political territorial entity
type common name
action count
action filter_type
action find
entity Canada
relation country of citizenship
type political territorial entity
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Canada property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?i = ?h ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic associations with atmost 1 political territory ?
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?i ) WHERE { ?x property:P530 ?e . ?x rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?i <= 1 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?i ) WHERE { ?x property:diplomatic_relation ?e . ?x rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?i <= 1 ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWERS] have diplomatic associations with atmost 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?i ) WHERE { ?x property:P530 ?e . ?x rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?i <= 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic associations with atmost 1 political territory
Gabon Grenada Papua New Guinea
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?i ) WHERE { ?x property:diplomatic_relation ?e . ?x rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?i <= 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q769
P36
Q56061
USER
What is the capital of that political territory ?
(Q769,P36,c(Q56061))
action filter_type
action find
entity Q769
relation P36
type Q56061
['Q769', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q769 property:P36 ?y . ?y rdf:type ontology:Q56061 }
Grenada
action filter_type
action find
entity Grenada
relation capital
type administrative territorial entity
['Grenada', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Grenada property:capital ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q691
SYSTEM
Did you mean Papua New Guinea ?
Q1000 Q769 Q691
(Q1000,P36,c(Q56061)) (Q769,P36,c(Q56061)) (Q691,P36,c(Q56061))
[ANSWER]
['Q1000', 'P36', {'concept': 'Q56061'}] ['Q769', 'P36', {'concept': 'Q56061'}] ['Q691', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q769 property:P36 ?y . ?y rdf:type ontology:Q56061 }
Gabon Grenada Papua New Guinea
Did you mean Papua New Guinea ?
Papua New Guinea
['Gabon', 'capital', {'concept': 'administrative territorial entity'}] ['Grenada', 'capital', {'concept': 'administrative territorial entity'}] ['Papua New Guinea', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Grenada property:capital ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Grenada. Could you tell me the answer for that?
(Q769,P36,c(Q56061))
Q769
['Q769', 'P36', {'concept': 'Q56061'}]
['Grenada', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q41547
SYSTEM
St. George's
Q41547
(Q769,P36,c(Q56061))
action filter_type
action find
entity Q769
relation P36
type Q56061
The capital of that political territory is of [ANSWER]
['Q769', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q769 property:P36 ?y . ?y rdf:type ontology:Q56061 }
St. George's
The capital of that political territory is of St. George's
St. George's
action filter_type
action find
entity Grenada
relation capital
type administrative territorial entity
['Grenada', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Grenada property:capital ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have around 2 administrative territories as registry port ?
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:P532 ?u . ?s rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?s } . FILTER ( ?p = 2 ) }
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:port_of_registry ?u . ?s rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?p = 2 ) }
[]
administrative territorial entity ship type
SYSTEM
4
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:P532 ?u . ?s rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?s } . FILTER ( ?p = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
4
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:port_of_registry ?u . ?s rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?p = 2 ) }
[]