Simple Question (Direct)
Simple Question
Q1239398
P19
Q56061
USER
Which administrative territory was Don Paterson born in ?
(Q1239398,P19,c(Q56061))
action filter_type
action find
entity Q1239398
relation P19
type Q56061
['Q1239398', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1239398 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Don Paterson
action filter_type
action find
entity Don Paterson
relation place of birth
type administrative territorial entity
['Don Paterson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Don_Paterson property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q123709
SYSTEM
Dundee
Q123709
(Q1239398,P19,c(Q56061))
action filter_type
action find
entity Q1239398
relation P19
type Q56061
Don Paterson was born in [ANSWER]
['Q1239398', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1239398 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Dundee
Don Paterson was born in Dundee
Dundee
action filter_type
action find
entity Don Paterson
relation place of birth
type administrative territorial entity
['Don Paterson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Don_Paterson property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q123709
P47
Q56061
USER
Which administrative territory is adjacent to that one ?
(Q123709,P47,c(Q56061))
action filter_type
action find
entity Q123709
relation P47
type Q56061
['Q123709', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q123709 property:P47 ?r }
Dundee
action filter_type
action find
entity Dundee
relation shares border with
type administrative territorial entity
['Dundee', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Dundee property:shares_border_with ?r }
[]
administrative territorial entity
Q996509
SYSTEM
Forfar
Q996509
(Q123709,P47,c(Q56061))
action filter_type
action find
entity Q123709
relation P47
type Q56061
He [ANSWER] is adjacent to that one
['Q123709', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q123709 property:P47 ?r }
Forfar
He Forfar is adjacent to that one
Forfar
action filter_type
action find
entity Dundee
relation shares border with
type administrative territorial entity
['Dundee', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Dundee property:shares_border_with ?r }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q996509 Q16880943 Q58820
P17
Q15617994
USER
Is Forfar located in Malone Central School District and Rocca d'Evandro ?
(Q996509,P17,Q16880943) (Q996509,P17,Q58820)
action is_in
entity Q996509
action intersection
action find_reverse
entity Q16880943
relation P17
action find_reverse
entity Q58820
relation P17
['Q996509', 'P17', 'Q16880943'] ['Q996509', 'P17', 'Q58820']
ASK WHERE { resource:Q996509 property:P17 resource:Q16880943 . resource:Q996509 property:P17 resource:Q58820 }
Forfar Malone Central School District Rocca d'Evandro
action is_in
entity Forfar
action intersection
action find_reverse
entity Malone Central School District
relation country
action find_reverse
entity Rocca d'Evandro
relation country
['Forfar', 'country', 'Malone Central School District'] ['Forfar', 'country', "Rocca d'Evandro"]
ASK WHERE { resource:Forfar property:country resource:Malone_Central_School_District . resource:Forfar property:country resource:Rocca_d'Evandro }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q996509,P17,Q16880943) (Q996509,P17,Q58820)
action is_in
entity Q996509
action intersection
action find_reverse
entity Q16880943
relation P17
action find_reverse
entity Q58820
relation P17
[ANSWER]
['Q996509', 'P17', 'Q16880943'] ['Q996509', 'P17', 'Q58820']
ASK WHERE { resource:Q996509 property:P17 resource:Q16880943 . resource:Q996509 property:P17 resource:Q58820 }
No
action is_in
entity Forfar
action intersection
action find_reverse
entity Malone Central School District
relation country
action find_reverse
entity Rocca d'Evandro
relation country
['Forfar', 'country', 'Malone Central School District'] ['Forfar', 'country', "Rocca d'Evandro"]
ASK WHERE { resource:Forfar property:country resource:Malone_Central_School_District . resource:Forfar property:country resource:Rocca_d'Evandro }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1239398 Q376282 Q140619
P1066
Q502895
USER
Is Don Paterson a student of Pierre-Marie Termier and Nadia Boulanger ?
(Q1239398,P1066,Q376282) (Q1239398,P1066,Q140619)
action is_in
entity Q1239398
action intersection
action find_reverse
entity Q376282
relation P1066
action find_reverse
entity Q140619
relation P1066
['Q1239398', 'P1066', 'Q376282'] ['Q1239398', 'P1066', 'Q140619']
ASK WHERE { resource:Q1239398 property:P1066 resource:Q140619 . resource:Q1239398 property:P1066 resource:Q376282 }
Don Paterson Pierre-Marie Termier Nadia Boulanger
action is_in
entity Don Paterson
action intersection
action find_reverse
entity Pierre-Marie Termier
relation student of
action find_reverse
entity Nadia Boulanger
relation student of
['Don Paterson', 'student of', 'Pierre-Marie Termier'] ['Don Paterson', 'student of', 'Nadia Boulanger']
ASK WHERE { resource:Don_Paterson property:student_of resource:Nadia_Boulanger . resource:Don_Paterson property:student_of resource:Pierre-Marie_Termier }
[]
common name
SYSTEM
NO and YES respectively
(Q1239398,P1066,Q376282) (Q1239398,P1066,Q140619)
action is_in
entity Q1239398
action intersection
action find_reverse
entity Q376282
relation P1066
action find_reverse
entity Q140619
relation P1066
[ANSWER]
['Q1239398', 'P1066', 'Q376282'] ['Q1239398', 'P1066', 'Q140619']
ASK WHERE { resource:Q1239398 property:P1066 resource:Q140619 . resource:Q1239398 property:P1066 resource:Q376282 }
NO and YES respectively
action is_in
entity Don Paterson
action intersection
action find_reverse
entity Pierre-Marie Termier
relation student of
action find_reverse
entity Nadia Boulanger
relation student of
['Don Paterson', 'student of', 'Pierre-Marie Termier'] ['Don Paterson', 'student of', 'Nadia Boulanger']
ASK WHERE { resource:Don_Paterson property:student_of resource:Nadia_Boulanger . resource:Don_Paterson property:student_of resource:Pierre-Marie_Termier }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q123709 Q214178 Q88
P190
Q56061
USER
Is Dundee twin city of Nablus and Alexandria ?
(Q123709,P190,Q214178) (Q123709,P190,Q88)
action is_in
entity Q123709
action intersection
action find_reverse
entity Q214178
relation P190
action find_reverse
entity Q88
relation P190
['Q123709', 'P190', 'Q214178'] ['Q123709', 'P190', 'Q88']
ASK WHERE { resource:Q123709 property:P190 resource:Q88 . resource:Q123709 property:P190 resource:Q214178 }
Dundee Nablus Alexandria
action is_in
entity Dundee
action intersection
action find_reverse
entity Nablus
relation sister city
action find_reverse
entity Alexandria
relation sister city
['Dundee', 'sister city', 'Nablus'] ['Dundee', 'sister city', 'Alexandria']
ASK WHERE { resource:Dundee property:sister_city resource:Alexandria . resource:Dundee property:sister_city resource:Nablus }
[]
administrative territorial entity
SYSTEM
YES
(Q123709,P190,Q214178) (Q123709,P190,Q88)
action is_in
entity Q123709
action intersection
action find_reverse
entity Q214178
relation P190
action find_reverse
entity Q88
relation P190
[ANSWER]
['Q123709', 'P190', 'Q214178'] ['Q123709', 'P190', 'Q88']
ASK WHERE { resource:Q123709 property:P190 resource:Q88 . resource:Q123709 property:P190 resource:Q214178 }
Yes
action is_in
entity Dundee
action intersection
action find_reverse
entity Nablus
relation sister city
action find_reverse
entity Alexandria
relation sister city
['Dundee', 'sister city', 'Nablus'] ['Dundee', 'sister city', 'Alexandria']
ASK WHERE { resource:Dundee property:sister_city resource:Alexandria . resource:Dundee property:sister_city resource:Nablus }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q123709
P1376
Q1048835
USER
Which political territory has Dundee as its capital ?
action filter_type
action find
entity Q123709
relation P1376
type Q1048835
SELECT DISTINCT ?g WHERE { resource:Q123709 property:P1376 ?g . ?g rdf:type ontology:Q1048835 }
Dundee
action filter_type
action find
entity Dundee
relation capital of
type political territorial entity
SELECT DISTINCT ?g WHERE { resource:Dundee property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q2357511
SYSTEM
City of Dundee
Q2357511
action filter_type
action find
entity Q123709
relation P1376
type Q1048835
[ANSWER] has Dundee as its capital
SELECT DISTINCT ?g WHERE { resource:Q123709 property:P1376 ?g . ?g rdf:type ontology:Q1048835 }
City of Dundee
City of Dundee has Dundee as its capital
City of Dundee
action filter_type
action find
entity Dundee
relation capital of
type political territorial entity
SELECT DISTINCT ?g WHERE { resource:Dundee property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have a diplomatic relationship with min number of political territories ?
(c(Q1048835),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?s ) WHERE { ?q property:P530 ?t . ?q rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d property:P530 ?c . ?d rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?r = ?j ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?s ) WHERE { ?q property:diplomatic_relation ?t . ?q rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d property:diplomatic_relation ?c . ?d rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?r = ?j ) }
[]
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,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have a diplomatic relationship with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?s ) WHERE { ?q property:P530 ?t . ?q rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d property:P530 ?c . ?d rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?r = ?j ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have a diplomatic relationship with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?s ) WHERE { ?q property:diplomatic_relation ?t . ?q rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d property:diplomatic_relation ?c . ?d rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?r = ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q38610
P122
Q56061 Q22676587 Q1048835
USER
Which political territories have approximately the same number of administrative territories or monarchic systems as the form of government as Dominion of Newfoundland ?
(c(Q1048835),P122,c(Q56061)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action count
action filter_multi_types
action find
entity Q38610
relation P122
type Q56061
type Q22676587
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q22676587 ) } . ?j rdf:type ?s } GROUP BY ?g } . FILTER ( ?e = ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Q38610 property:P122 ?n . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q22676587 ) } } } } }
Dominion of Newfoundland
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity Dominion of Newfoundland
relation basic form of government
type administrative territorial entity
type monarchic system
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:monarchic_system ) } . ?j rdf:type ?s } GROUP BY ?g } . FILTER ( ?e = ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Dominion_of_Newfoundland property:basic_form_of_government ?n . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:monarchic_system ) } } } } }
[]
administrative territorial entity monarchic system political territorial entity
Q763 Q38610 Q151938
SYSTEM
Saint Kitts and Nevis, Dominion of Newfoundland, Neutral Moresnet
Q763 Q38610 Q151938
(c(Q1048835),P122,c(Q56061)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action count
action filter_multi_types
action find
entity Q38610
relation P122
type Q56061
type Q22676587
[ANSWERS] have approximately the same number of administrative territories or monarchic systems as the form of government as Dominion of Newfoundland
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q22676587 ) } . ?j rdf:type ?s } GROUP BY ?g } . FILTER ( ?e = ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Q38610 property:P122 ?n . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q22676587 ) } } } } }
Saint Kitts and Nevis Dominion of Newfoundland Neutral Moresnet
Saint Kitts and Nevis, Dominion of Newfoundland and Neutral Moresnet have approximately the same number of administrative territories or monarchic systems as the form of government as Dominion of Newfoundland
Saint Kitts and Nevis Dominion of Newfoundland Neutral Moresnet
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity Dominion of Newfoundland
relation basic form of government
type administrative territorial entity
type monarchic system
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:monarchic_system ) } . ?j rdf:type ?s } GROUP BY ?g } . FILTER ( ?e = ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { resource:Dominion_of_Newfoundland property:basic_form_of_government ?n . { ?n rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:monarchic_system ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q183
P122
Q56061 Q22676587 Q1048835
USER
And what about Germany?
(c(Q1048835),P122,c(Q56061)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action count
action filter_multi_types
action find
entity Q183
relation P122
type Q56061
type Q22676587
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q183 property:P122 ?c . { { ?c rdf:type ontology:Q22676587 } UNION { ?c rdf:type ontology:Q56061 } } } } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?w ) WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:Q22676587 ) ( ontology:Q56061 ) } } GROUP BY ?b } }
Germany
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity Germany
relation basic form of government
type administrative territorial entity
type monarchic system
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Germany property:basic_form_of_government ?c . { { ?c rdf:type ontology:monarchic_system } UNION { ?c rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?w ) WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:monarchic_system ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?b } }
[]
administrative territorial entity monarchic system political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q601252 Q193619 Q1059046 Q664 Q641138 Q1925048 Q785 Q178084 Q16 Q35 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q31747 Q129286
(c(Q1048835),P122,c(Q56061)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action count
action filter_multi_types
action find
entity Q183
relation P122
type Q56061
type Q22676587
[ANSWERS]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q183 property:P122 ?c . { { ?c rdf:type ontology:Q22676587 } UNION { ?c rdf:type ontology:Q56061 } } } } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?w ) WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:Q22676587 ) ( ontology:Q56061 ) } } GROUP BY ?b } }
Germany Banovina of Croatia Union of South Africa Merkit people New Zealand Duchy of Cleves San Pedro Partido Jersey Ilkhanate Canada Denmark Golden Horde Kingdom of Etruria Dominion of New Zealand Australia Saint Vincent and the Grenadines County of Hoya Austria realm Irish Free State British Raj
Germany Australia Denmark
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action count
action filter_multi_types
action find
entity Germany
relation basic form of government
type administrative territorial entity
type monarchic system
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Germany property:basic_form_of_government ?c . { { ?c rdf:type ontology:monarchic_system } UNION { ?c rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?w ) WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:monarchic_system ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?b } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories holds diplomatic relationship with exactly 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?v ) WHERE { ?y property:P530 ?x . ?x rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?v = 3 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?v ) WHERE { ?y property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?v = 3 ) }
[]
political territorial entity political territorial entity
Q35 Q664
SYSTEM
Denmark, New Zealand
Q35 Q664
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWERS] hold diplomatic relationship with exactly 3 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?v ) WHERE { ?y property:P530 ?x . ?x rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?v = 3 ) }
Denmark New Zealand
Denmark and New Zealand hold diplomatic relationship with exactly 3 political territories
Denmark New Zealand
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?v ) WHERE { ?y property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?v = 3 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P6
Q502895
USER
How many people do that political territory serve as the head of government for ?
(Q35,P6,c(Q502895))
['Q35', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q22286761 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
['Denmark', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Denmark property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q664
SYSTEM
Did you mean New Zealand ?
(Q35,P6,c(Q502895)) (Q664,P6,c(Q502895))
[ANSWER]
['Q35', 'P6', {'concept': 'Q502895'}] ['Q664', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q22286761 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
Did you mean New Zealand ?
New Zealand
['Denmark', 'head of government', {'concept': 'common name'}] ['New Zealand', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Denmark property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Denmark. Could you tell me the answer for that?
(Q35,P6,c(Q502895))
Q35
['Q35', 'P6', {'concept': 'Q502895'}]
['Denmark', 'head of government', {'concept': 'common name'}]
[]
SYSTEM
41
Q441330 Q1040851 Q1037599 Q966436 Q918287 Q57652 Q503087 Q725118 Q264340 Q727237 Q1634992 Q1274220 Q782403 Q351178 Q367557 Q1375737 Q1343866 Q491280 Q721358 Q1375094 Q1343877 Q312881 Q46052 Q1335084 Q1744787 Q1576188 Q182397 Q327190 Q348901 Q572189 Q664052 Q710950 Q311063 Q1874069 Q947789 Q591189 Q1375050 Q947911 Q694093 Q731504 Q982328
(Q35,P6,c(Q502895))
[ANSWER]
['Q35', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q22286761 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
Jens Otto Krag Carl Theodor Zahle Carl Edvard Rotwitt Christen Andreas Fonnesbech Viggo Kampmann Helle Thorning-Schmidt Hans Hedtoft Carl Christian Hall Klaus Berntsen Hilmar Baunsgaard Hugo Egmont Hørring Jens Christian Christensen Christian Emil Krag-Juel-Vind-Frijs Adam Wilhelm Moltke Thorvald Stauning Michael Pedersen Friis Ludvig Holstein-Holsteinborg Anders Sandøe Ørsted H. C. Hansen Niels Neergaard Jacob Brønnum Scavenius Estrup Anker Jørgensen Anders Fogh Rasmussen Knud Kristensen Otto Liebe Hannibal Sehested Lars Løkke Rasmussen Poul Schlüter Poul Hartling Johan Henrik Deuntzer Vilhelm Buhl Erik Eriksen Poul Nyrup Rasmussen Ludvig Holstein-Ledreborg Carl Christoffer Georg Andræ Peter Georg Bang Tage Reedtz-Thott Christian Albrecht Bluhme Ditlev Gothard Monrad Erik Scavenius Thomas Madsen-Mygdal
41
['Denmark', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Denmark property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P36
Q56061
USER
What is the capital of Denmark ?
(Q35,P36,c(Q56061))
action filter_type
action find
entity Q35
relation P36
type Q56061
['Q35', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q35 property:P36 ?y . ?y rdf:type ontology:Q56061 }
Denmark
action filter_type
action find
entity Denmark
relation capital
type administrative territorial entity
['Denmark', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Denmark property:capital ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1748
SYSTEM
Copenhagen
Q1748
(Q35,P36,c(Q56061))
action filter_type
action find
entity Q35
relation P36
type Q56061
The capital of Denmark is [ANSWER]
['Q35', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q35 property:P36 ?y . ?y rdf:type ontology:Q56061 }
Copenhagen
The capital of Denmark is Copenhagen
Copenhagen
action filter_type
action find
entity Denmark
relation capital
type administrative territorial entity
['Denmark', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Denmark property:capital ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1748
P276
Q4830453
USER
What are situated at that administrative territory ?
(c(Q4830453),P276,Q1748)
action filter_type
action find_reverse
entity Q1748
relation P276
type Q4830453
[{'concept': 'Q4830453'}, 'P276', 'Q1748']
SELECT DISTINCT ?i WHERE { ?i property:P276 resource:Q1748 . ?i rdf:type ontology:Q4830453 }
Copenhagen
action filter_type
action find_reverse
entity Copenhagen
relation location
type business enterprise
[{'concept': 'business enterprise'}, 'location', 'Copenhagen']
SELECT DISTINCT ?i WHERE { ?i property:location resource:Copenhagen . ?i rdf:type ontology:business_enterprise }
[]
business enterprise
Q48592 Q15043405
SYSTEM
Noma, Kokkeriet
Q48592 Q15043405
(c(Q4830453),P276,Q1748)
action filter_type
action find_reverse
entity Q1748
relation P276
type Q4830453
[ANSWERS] are situated at that administrative territory
[{'concept': 'Q4830453'}, 'P276', 'Q1748']
SELECT DISTINCT ?i WHERE { ?i property:P276 resource:Q1748 . ?i rdf:type ontology:Q4830453 }
Noma Kokkeriet
Noma and Kokkeriet are situated at that administrative territory
Noma Kokkeriet
action filter_type
action find_reverse
entity Copenhagen
relation location
type business enterprise
[{'concept': 'business enterprise'}, 'location', 'Copenhagen']
SELECT DISTINCT ?i WHERE { ?i property:location resource:Copenhagen . ?i rdf:type ontology:business_enterprise }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P355
Q4830453 Q43229 Q28640
USER
How many business enterprises are more number of organizations and professions the parent company of than that business enterprise ?
(c(Q43229)|c(Q28640),P355,c(Q4830453))
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P355', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?r property:P355 ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q4830453 . ?x rdf:type ontology:Q28640 }
[[{'concept': 'organization'}, {'concept': 'profession'}], 'subsidiary', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?r property:subsidiary ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:business_enterprise . ?x rdf:type ontology:profession }
[]
business enterprise organization profession
Comparative|Count over More/Less|Mult. entity type|Clarification
Q15043405
SYSTEM
Did you mean Kokkeriet ?
(c(Q43229)|c(Q28640),P355,c(Q4830453))
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P355', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?r property:P355 ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q4830453 . ?x rdf:type ontology:Q28640 }
Did you mean Kokkeriet ?
Kokkeriet
[[{'concept': 'organization'}, {'concept': 'profession'}], 'subsidiary', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?r property:subsidiary ?y . VALUES ( ?r ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:business_enterprise . ?x rdf:type ontology:profession }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Noma. Could you tell me the answer for that?
(c(Q43229)|c(Q28640),P355,c(Q4830453))
Q48592
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P355', {'concept': 'Q4830453'}]
[[{'concept': 'organization'}, {'concept': 'profession'}], 'subsidiary', {'concept': 'business enterprise'}]
[]
SYSTEM
83
Q16987731 Q2843047 Q1143709 Q94912 Q10366076 Q1134268 Q3547645 Q21501946 Q1714952 Q382465 Q1737487 Q106158 Q6341142 Q10366119 Q306769 Q1626564 Q6766400 Q4854200 Q7385860 Q7955301 Q3045727 Q1519181 Q389251 Q11236446 Q641746 Q1318441 Q1342538 Q35886 Q16172809 Q568940 Q1778277 Q708667 Q858665 Q27489 Q16496497 Q26720780 Q1475070 Q1053674 Q968850 Q3187172 Q2031951 Q10365786 Q658637 Q26702890 Q1918981 Q5447158 Q59187 Q788231 Q836947 Q155573 Q600457 Q4073726 Q1754870 Q40966 Q1122564 Q843448 Q15529123 Q2771806 Q10271259 Q7632539 Q13974 Q708290 Q965315 Q161405 Q7954024 Q2531909 Q810783 Q822314 Q5350273 Q7380124 Q19904 Q1672772 Q4231991 Q2082380 Q20061301 Q23925826 Q1182611 Q106854 Q564963 Q866 Q837851 Q212268 Q2373435
(c(Q43229)|c(Q28640),P355,c(Q4830453))
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P355', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P355 ?y } UNION { ?x property:P355 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q4830453 . ?x rdf:type ontology:Q28640 }
ITV Digital Channels Ltd AT&T Corporation BS-TBS Rockstar Games Record FM Sony Corporation of America Ubisoft Annecy J.P. Morgan Private Bank Kol Yisrael Affiliated Computer Services Kazan Helicopters Standard & Poor's KXEN Inc. Rádio Trânsito Abbott Mead Vickers BBDO Honda Canada Tokyo Broadcasting System Television BandNews FM Rádio Record WRSO E.ON UK Telemontecarlo Kobo Inc. Radio Kansai Hallmark Channel AdMob OXXO Lamborghini SK Innovation Jet Odense Steel Shipyard MAN Truck & Bus Big C DAF Band FM J-F. Lemvigh-Müller Holding MBDA DoubleClick Nova TV Jovem Pan FM Sociedade Independente de Comunicação Rádio Estadão Miller Brewing Company A.P. Møller Holding John Lewis Fieldglass Vauxhall Massimo Dutti Convair Airbus Helicopters OCZ Aeroexpress Stadtwerke Verkehrsgesellschaft Frankfurt am Main Opel Infra Infrastrukturgesellschaft Region Hannover GmbH TBS Radio Airbus Defence and Space Compagnie Internationale des Grands Hotels Eldorado FM SuccessFactors NBC Cartoon Network Dansk Automobil Byggeri Animax WOW! Volksfürsorge Bath Iron Works Sony Pictures Entertainment UKTV Runtastic France Info TransnetBW Qoros Bethlehem Shipbuilding Corporation DirecTV Latin America Meyers Portefølje Rede 21 Beck's Sport1 YouTube The Body Shop Antonov Volvo Buses
83
[[{'concept': 'organization'}, {'concept': 'profession'}], 'subsidiary', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:subsidiary ?y } UNION { ?x property:subsidiary ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:business_enterprise . ?x rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P194
Q11204
USER
Which legislature represents Germany ?
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?b WHERE { resource:Q183 property:P194 ?b . ?b rdf:type ontology:Q11204 }
Germany
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?b WHERE { resource:Germany property:legislative_body ?b . ?b rdf:type ontology:legislature }
[]
legislature
Q146138
SYSTEM
Bundesrat
Q146138
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
[ANSWER] represents Germany
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?b WHERE { resource:Q183 property:P194 ?b . ?b rdf:type ontology:Q11204 }
Bundesrat
Bundesrat represents Germany
Bundesrat
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?b WHERE { resource:Germany property:legislative_body ?b . ?b rdf:type ontology:legislature }
[]