Simple Question (Direct)
Simple Question
Q5211704
P106
Q28640
USER
Which profession is the profession of Dalton McCarthy ?
(Q5211704,P106,c(Q28640))
action filter_type
action find
entity Q5211704
relation P106
type Q28640
['Q5211704', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?g WHERE { resource:Q5211704 property:P106 ?g . ?g rdf:type ontology:Q28640 }
Dalton McCarthy
action filter_type
action find
entity Dalton McCarthy
relation occupation
type profession
['Dalton McCarthy', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?g WHERE { resource:Dalton_McCarthy property:occupation ?g . ?g rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q5211704,P106,c(Q28640))
action filter_type
action find
entity Q5211704
relation P106
type Q28640
The [ANSWER] is the profession of Dalton McCarthy
['Q5211704', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?g WHERE { resource:Q5211704 property:P106 ?g . ?g rdf:type ontology:Q28640 }
lawyer
The lawyer is the profession of Dalton McCarthy
lawyer
action filter_type
action find
entity Dalton McCarthy
relation occupation
type profession
['Dalton McCarthy', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?g WHERE { resource:Dalton_McCarthy property:occupation ?g . ?g rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40348
P417
Q502895
USER
What people are the patron saint of that profession ?
(Q40348,P417,c(Q502895))
action filter_type
action find
entity Q40348
relation P417
type Q502895
['Q40348', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q40348 property:P417 ?a }
lawyer
action filter_type
action find
entity lawyer
relation patron saint
type common name
['lawyer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:lawyer property:patron_saint ?a }
[]
common name
Q179718 Q358325
SYSTEM
Catherine of Alexandria, Ivo of Kermartin
Q179718 Q358325
(Q40348,P417,c(Q502895))
action filter_type
action find
entity Q40348
relation P417
type Q502895
[ANSWERS] are the patron saint of that profession
['Q40348', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q40348 property:P417 ?a }
Catherine of Alexandria Ivo of Kermartin
Catherine of Alexandria and Ivo of Kermartin are the patron saint of that profession
Catherine of Alexandria Ivo of Kermartin
action filter_type
action find
entity lawyer
relation patron saint
type common name
['lawyer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:lawyer property:patron_saint ?a }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q611508
P417
Q28640
USER
Do Creative Assembly have those people as their patron saint ?
(Q611508,P417,Q179718) (Q611508,P417,Q358325)
action is_in
entity prev_answer
action find
entity Q611508
relation P417
['Q611508', 'P417', 'Q179718'] ['Q611508', 'P417', 'Q358325']
ASK WHERE { resource:Q611508 property:P417 ?q . VALUES ( ?q ) { ( resource:Q179718 ) ( resource:Q358325 ) } }
Creative Assembly
action is_in
entity prev_answer
action find
entity Creative Assembly
relation patron saint
['Creative Assembly', 'patron saint', 'Catherine of Alexandria'] ['Creative Assembly', 'patron saint', 'Ivo of Kermartin']
ASK WHERE { resource:Creative_Assembly property:patron_saint ?q . VALUES ( ?q ) { ( resource:Catherine_of_Alexandria ) ( resource:Ivo_of_Kermartin ) } }
[]
profession
SYSTEM
NO
(Q611508,P417,Q179718) (Q611508,P417,Q358325)
action is_in
entity prev_answer
action find
entity Q611508
relation P417
[ANSWER]
['Q611508', 'P417', 'Q179718'] ['Q611508', 'P417', 'Q358325']
ASK WHERE { resource:Q611508 property:P417 ?q . VALUES ( ?q ) { ( resource:Q179718 ) ( resource:Q358325 ) } }
No
action is_in
entity prev_answer
action find
entity Creative Assembly
relation patron saint
['Creative Assembly', 'patron saint', 'Catherine of Alexandria'] ['Creative Assembly', 'patron saint', 'Ivo of Kermartin']
ASK WHERE { resource:Creative_Assembly property:patron_saint ?q . VALUES ( ?q ) { ( resource:Catherine_of_Alexandria ) ( resource:Ivo_of_Kermartin ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5211704
P39
Q12737077
USER
Which occupation was a position for which Dalton McCarthy was appointed ?
(Q5211704,P39,c(Q12737077))
action filter_type
action find
entity Q5211704
relation P39
type Q12737077
['Q5211704', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q5211704 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Dalton McCarthy
action filter_type
action find
entity Dalton McCarthy
relation position held
type occupation
['Dalton McCarthy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Dalton_McCarthy property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q15964890
SYSTEM
member of the House of Commons of Canada
Q15964890
(Q5211704,P39,c(Q12737077))
action filter_type
action find
entity Q5211704
relation P39
type Q12737077
A [ANSWER] was a position for which Dalton McCarthy was appointed
['Q5211704', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q5211704 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
member of the House of Commons of Canada
A member of the House of Commons of Canada was a position for which Dalton McCarthy was appointed
member of the House of Commons of Canada
action filter_type
action find
entity Dalton McCarthy
relation position held
type occupation
['Dalton McCarthy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Dalton_McCarthy property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5211704
P20
Q56061
USER
Where did the demise of that person occur ?
(Q15964890,P20,c(Q56061))
action filter_type
action find
entity Q5211704
relation P20
type Q56061
['Q15964890', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5211704 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Dalton McCarthy
action filter_type
action find
entity Dalton McCarthy
relation place of death
type administrative territorial entity
['member of the House of Commons of Canada', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Dalton_McCarthy property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q172
SYSTEM
Toronto
Q172
(Q15964890,P20,c(Q56061))
action filter_type
action find
entity Q5211704
relation P20
type Q56061
The demise of that person occurred in [ANSWER]
['Q15964890', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5211704 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Toronto
The demise of that person occurred in Toronto
Toronto
action filter_type
action find
entity Dalton McCarthy
relation place of death
type administrative territorial entity
['member of the House of Commons of Canada', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Dalton_McCarthy property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q172 Q406
P190
Q56061
USER
Is Istanbul the sister city of Toronto ?
(Q172,P190,Q406)
action is_in
entity Q406
action find
entity Q172
relation P190
['Q172', 'P190', 'Q406']
ASK WHERE { resource:Q172 property:P190 resource:Q406 }
Toronto Istanbul
action is_in
entity Istanbul
action find
entity Toronto
relation sister city
['Toronto', 'sister city', 'Istanbul']
ASK WHERE { resource:Toronto property:sister_city resource:Istanbul }
[]
administrative territorial entity
SYSTEM
YES
(Q172,P190,Q406)
action is_in
entity Q406
action find
entity Q172
relation P190
[ANSWER]
['Q172', 'P190', 'Q406']
ASK WHERE { resource:Q172 property:P190 resource:Q406 }
Yes
action is_in
entity Istanbul
action find
entity Toronto
relation sister city
['Toronto', 'sister city', 'Istanbul']
ASK WHERE { resource:Toronto property:sister_city resource:Istanbul }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q179718 Q2277
P2348
Q3024240
USER
Did Catherine of Alexandria occur Roman Empire ?
(Q179718,P2348,Q2277)
action is_in
entity Q2277
action find
entity Q179718
relation P2348
['Q179718', 'P2348', 'Q2277']
ASK WHERE { resource:Q179718 property:P2348 resource:Q2277 }
Catherine of Alexandria Roman Empire
action is_in
entity Roman Empire
action find
entity Catherine of Alexandria
relation period
['Catherine of Alexandria', 'period', 'Roman Empire']
ASK WHERE { resource:Catherine_of_Alexandria property:period resource:Roman_Empire }
[]
former country
SYSTEM
YES
(Q179718,P2348,Q2277)
action is_in
entity Q2277
action find
entity Q179718
relation P2348
[ANSWER]
['Q179718', 'P2348', 'Q2277']
ASK WHERE { resource:Q179718 property:P2348 resource:Q2277 }
Yes
action is_in
entity Roman Empire
action find
entity Catherine of Alexandria
relation period
['Catherine of Alexandria', 'period', 'Roman Empire']
ASK WHERE { resource:Catherine_of_Alexandria property:period resource:Roman_Empire }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5211704 Q4430418
P27
Q1048835
USER
Is Dalton McCarthy a civilian of Soshky ?
(Q5211704,P27,Q4430418)
action is_in
entity Q4430418
action find
entity Q5211704
relation P27
['Q5211704', 'P27', 'Q4430418']
ASK WHERE { resource:Q5211704 property:P27 resource:Q4430418 }
Dalton McCarthy Soshky
action is_in
entity Soshky
action find
entity Dalton McCarthy
relation country of citizenship
['Dalton McCarthy', 'country of citizenship', 'Soshky']
ASK WHERE { resource:Dalton_McCarthy property:country_of_citizenship resource:Soshky }
[]
political territorial entity
SYSTEM
NO
(Q5211704,P27,Q4430418)
action is_in
entity Q4430418
action find
entity Q5211704
relation P27
[ANSWER]
['Q5211704', 'P27', 'Q4430418']
ASK WHERE { resource:Q5211704 property:P27 resource:Q4430418 }
No
action is_in
entity Soshky
action find
entity Dalton McCarthy
relation country of citizenship
['Dalton McCarthy', 'country of citizenship', 'Soshky']
ASK WHERE { resource:Dalton_McCarthy property:country_of_citizenship resource:Soshky }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1687465 Q5211704
P27
Q1048835
USER
Which political territories are Dalton McCarthy or Jenö Eisenberger an inhabitant of ?
OR((Q5211704,P27,c(Q1048835)), (Q1687465,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5211704
relation P27
action find
entity Q1687465
relation P27
type Q1048835
{'OR': [['Q5211704', 'P27', {'concept': 'Q1048835'}], ['Q1687465', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1687465 property:P27 ?f } UNION { resource:Q5211704 property:P27 ?f } } . ?f rdf:type ontology:Q1048835 }
Jenö Eisenberger Dalton McCarthy
action filter_type
action union
action find
entity Dalton McCarthy
relation country of citizenship
action find
entity Jenö Eisenberger
relation country of citizenship
type political territorial entity
{'OR': [['Dalton McCarthy', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jenö Eisenberger', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Jenö_Eisenberger property:country_of_citizenship ?f } UNION { resource:Dalton_McCarthy property:country_of_citizenship ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q40
SYSTEM
Canada, Austria
Q16 Q40
OR((Q5211704,P27,c(Q1048835)), (Q1687465,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5211704
relation P27
action find
entity Q1687465
relation P27
type Q1048835
[ANSWERS] are Dalton McCarthy or Jenö Eisenberger an inhabitant of
{'OR': [['Q5211704', 'P27', {'concept': 'Q1048835'}], ['Q1687465', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1687465 property:P27 ?f } UNION { resource:Q5211704 property:P27 ?f } } . ?f rdf:type ontology:Q1048835 }
Canada Austria
Canada and Austria are Dalton McCarthy or Jenö Eisenberger an inhabitant of
Canada Austria
action filter_type
action union
action find
entity Dalton McCarthy
relation country of citizenship
action find
entity Jenö Eisenberger
relation country of citizenship
type political territorial entity
{'OR': [['Dalton McCarthy', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jenö Eisenberger', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Jenö_Eisenberger property:country_of_citizenship ?f } UNION { resource:Dalton_McCarthy property:country_of_citizenship ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q40
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have diplomatic relations with lesser number of political territories and administrative territories than Austria ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q40
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) ?k WHERE { { ?k property:P530 ?w . ?w rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } UNION { ?k property:P530 ?w . ?k rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?k } . FILTER ( ?l < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { resource:Q40 property:P530 ?q . { ?q rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } }
Austria
action less
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Austria
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) ?k WHERE { { ?k property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } UNION { ?k property:diplomatic_relation ?w . ?k rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?k } . FILTER ( ?l < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { resource:Austria property:diplomatic_relation ?q . { ?q rdf:type ?a . VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q35 Q664 Q1000
SYSTEM
Denmark, New Zealand, Gabon
Q1000 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q40
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with lesser number of political territories and administrative territories than Austria
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) ?k WHERE { { ?k property:P530 ?w . ?w rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } UNION { ?k property:P530 ?w . ?k rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?k } . FILTER ( ?l < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { resource:Q40 property:P530 ?q . { ?q rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, New Zealand and Gabon have diplomatic relations with lesser number of political territories and administrative territories than Austria
Denmark New Zealand Gabon
action less
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Austria
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) ?k WHERE { { ?k property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } UNION { ?k property:diplomatic_relation ?w . ?k rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?k } . FILTER ( ?l < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { resource:Austria property:diplomatic_relation ?q . { ?q rdf:type ?a . VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q664
P530
Q1048835 Q15617994 Q1048835
USER
And what about New Zealand?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q664
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?r rdf:type ?j } GROUP BY ?n } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?h rdf:type ?e } . resource:Q664 property:P530 ?h } } }
New Zealand
action less
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?r rdf:type ?j } GROUP BY ?n } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?e } . resource:New_Zealand property:diplomatic_relation ?h } } }
[]
political territorial entity designation for an administrative 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)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q664
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?r rdf:type ?j } GROUP BY ?n } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?h rdf:type ?e } . resource:Q664 property:P530 ?h } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon Grenada Papua New Guinea
action less
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?r rdf:type ?j } GROUP BY ?n } . FILTER ( ?a < ?s ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?e } . resource:New_Zealand property:diplomatic_relation ?h } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories are known to have diplomatic connections with max number of political territories ?
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?y ) WHERE { ?h property:P530 ?m . ?m rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?y ) WHERE { ?h property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } }
[]
political territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] is known to have diplomatic connections with max number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?y ) WHERE { ?h property:P530 ?m . ?m rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } }
Georgia
Georgia is known to have diplomatic connections with max number of political territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?y ) WHERE { ?h property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?m ) WHERE { ?j property:P530 ?y . ?j rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?u ) WHERE { ?q property:P530 ?p . ?q rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?q } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?m ) WHERE { ?j property:diplomatic_relation ?y . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?u ) WHERE { ?q property:diplomatic_relation ?p . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?m ) WHERE { ?j property:P530 ?y . ?j rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?u ) WHERE { ?q property:P530 ?p . ?q rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?q } } }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?m ) WHERE { ?j property:diplomatic_relation ?y . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?u ) WHERE { ?q property:diplomatic_relation ?p . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q230
P463
Q43229 Q484652
USER
How many organizations or international organizations were Georgia a member of ?
(Q230,P463,c(Q43229)) (Q230,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q230
relation P463
type Q43229
action filter_type
action find
entity Q230
relation P463
type Q484652
['Q230', 'P463', {'concept': 'Q43229'}] ['Q230', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q484652 ) } . ?q rdf:type ?p }
Georgia
action count
action union
action filter_type
action find
entity Georgia
relation member of
type organization
action filter_type
action find
entity Georgia
relation member of
type international organization
['Georgia', 'member of', {'concept': 'organization'}] ['Georgia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:international_organization ) } . ?q rdf:type ?p }
[]
organization international organization
SYSTEM
5
Q380340 Q7825 Q326816 Q1065 Q81299
(Q230,P463,c(Q43229)) (Q230,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q230
relation P463
type Q43229
action filter_type
action find
entity Q230
relation P463
type Q484652
[ANSWER]
['Q230', 'P463', {'concept': 'Q43229'}] ['Q230', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q484652 ) } . ?q rdf:type ?p }
Organization of the Black Sea Economic Cooperation World Trade Organization GUAM Organization for Democracy and Economic Development United Nations Organization for Security and Co-operation in Europe
5
action count
action union
action filter_type
action find
entity Georgia
relation member of
type organization
action filter_type
action find
entity Georgia
relation member of
type international organization
['Georgia', 'member of', {'concept': 'organization'}] ['Georgia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:international_organization ) } . ?q rdf:type ?p }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?v ) WHERE { ?z property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?x ) WHERE { ?s property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?v ) WHERE { ?z property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?x ) WHERE { ?s property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have a diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?v ) WHERE { ?z property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?x ) WHERE { ?s property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?s } }
Germany
Germany have a diplomatic relationship with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?v ) WHERE { ?z property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?x ) WHERE { ?s property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]