Simple Question (Direct)
Simple Question
Q6414920
P607
Q198
USER
Which battle did Kirby Hendee take part in ?
(Q6414920,P607,c(Q198))
action filter_type
action find
entity Q6414920
relation P607
type Q198
['Q6414920', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q198 . resource:Q6414920 property:P607 ?j }
Kirby Hendee
action filter_type
action find
entity Kirby Hendee
relation conflict
type war
['Kirby Hendee', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:war . resource:Kirby_Hendee property:conflict ?j }
[]
war
Q362
SYSTEM
World War II
Q362
(Q6414920,P607,c(Q198))
action filter_type
action find
entity Q6414920
relation P607
type Q198
Kirby Hendee took part in [ANSWER]
['Q6414920', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q198 . resource:Q6414920 property:P607 ?j }
World War II
Kirby Hendee took part in World War II
World War II
action filter_type
action find
entity Kirby Hendee
relation conflict
type war
['Kirby Hendee', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:war . resource:Kirby_Hendee property:conflict ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q362
P710
Q15617994
USER
Who were the participants of that war ?
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q362 property:P710 ?t . ?t rdf:type ontology:Q15617994 }
World War II
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:World_War_II property:participant ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30 Q142
SYSTEM
Italy, United States of America, France
Q142 Q17 Q30 Q38 Q145
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
The participants of that war were [ANSWERS]
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q362 property:P710 ?t . ?t rdf:type ontology:Q15617994 }
France Japan United States of America Italy United Kingdom
The participants of that war were Italy, United States of America and France
Italy United States of America France
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:World_War_II property:participant ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q362
Q1048835
USER
And which political territory?
(Q362,P710,c(Q1048835))
action filter_type
action find
entity Q362
relation P710
type Q1048835
['Q362', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q362 property:P710 ?u }
World War II
action filter_type
action find
entity World War II
relation participant
type political territorial entity
['World War II', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:World_War_II property:participant ?u }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q362,P710,c(Q1048835))
action filter_type
action find
entity Q362
relation P710
type Q1048835
[ANSWER]
['Q362', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q362 property:P710 ?u }
Germany
Germany
action filter_type
action find
entity World War II
relation participant
type political territorial entity
['World War II', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:World_War_II property:participant ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q1510348
P27
Q502895
USER
Is John A. Groves a native of that political territory ?
(Q1510348,P27,Q183)
action is_in
entity Q183
action find
entity Q1510348
relation P27
['Q1510348', 'P27', 'Q183']
ASK WHERE { resource:Q1510348 property:P27 resource:Q183 }
Germany John A. Groves
action is_in
entity Germany
action find
entity John A. Groves
relation country of citizenship
['John A. Groves', 'country of citizenship', 'Germany']
ASK WHERE { resource:John_A._Groves property:country_of_citizenship resource:Germany }
[]
common name
SYSTEM
YES
(Q1510348,P27,Q183)
action is_in
entity Q183
action find
entity Q1510348
relation P27
[ANSWER]
['Q1510348', 'P27', 'Q183']
ASK WHERE { resource:Q1510348 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity John A. Groves
relation country of citizenship
['John A. Groves', 'country of citizenship', 'Germany']
ASK WHERE { resource:John_A._Groves property:country_of_citizenship resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q41
P530
Q1048835
USER
How many political territories have diplomatic relationships with Italy and Greece ?
(Q38,P530,c(Q1048835)) (Q41,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q38
relation P530
type Q1048835
action filter_type
action find
entity Q41
relation P530
type Q1048835
['Q38', 'P530', {'concept': 'Q1048835'}] ['Q41', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q38 property:P530 ?f . ?f rdf:type ontology:Q1048835 . resource:Q41 property:P530 ?f . ?f rdf:type ontology:Q1048835 }
Italy Greece
action count
action intersection
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Greece
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Italy property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . resource:Greece property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q38,P530,c(Q1048835)) (Q41,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q38
relation P530
type Q1048835
action filter_type
action find
entity Q41
relation P530
type Q1048835
[ANSWER]
['Q38', 'P530', {'concept': 'Q1048835'}] ['Q41', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q38 property:P530 ?f . ?f rdf:type ontology:Q1048835 . resource:Q41 property:P530 ?f . ?f rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Greece
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Italy property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . resource:Greece property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have tactful political relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?r ) WHERE { ?x rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?x property:P530 ?e } GROUP BY ?x } } . FILTER ( ?f = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?f ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } GROUP BY ?q } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?r ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?x property:diplomatic_relation ?e } GROUP BY ?x } } . FILTER ( ?f = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?f ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?q } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have tactful political relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?r ) WHERE { ?x rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?x property:P530 ?e } GROUP BY ?x } } . FILTER ( ?f = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?f ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } GROUP BY ?q } }
Australia
Australia have tactful political relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?r ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?x property:diplomatic_relation ?e } GROUP BY ?x } } . FILTER ( ?f = ?j ) . { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?f ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?q } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q408 Q3428892
P27
Q502895
USER
Is Torsten Tegnér a native of that political territory ?
(Q3428892,P27,Q408)
action is_in
entity Q3428892
action find
entity Q408
relation P27
['Q3428892', 'P27', 'Q408']
ASK WHERE { resource:Q408 property:P27 resource:Q3428892 }
Australia Torsten Tegnér
action is_in
entity Torsten Tegnér
action find
entity Australia
relation country of citizenship
['Torsten Tegnér', 'country of citizenship', 'Australia']
ASK WHERE { resource:Australia property:country_of_citizenship resource:Torsten_Tegnér }
[]
common name
SYSTEM
NO
(Q3428892,P27,Q408)
action is_in
entity Q3428892
action find
entity Q408
relation P27
[ANSWER]
['Q3428892', 'P27', 'Q408']
ASK WHERE { resource:Q408 property:P27 resource:Q3428892 }
No
action is_in
entity Torsten Tegnér
action find
entity Australia
relation country of citizenship
['Torsten Tegnér', 'country of citizenship', 'Australia']
ASK WHERE { resource:Australia property:country_of_citizenship resource:Torsten_Tegnér }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6414920 Q5050954
P27
Q15617994
USER
Is Kirby Hendee an inhabitant of Caswell County Schools ?
(Q6414920,P27,Q5050954)
action is_in
entity Q5050954
action find
entity Q6414920
relation P27
['Q6414920', 'P27', 'Q5050954']
ASK WHERE { resource:Q6414920 property:P27 resource:Q5050954 }
Kirby Hendee Caswell County Schools
action is_in
entity Caswell County Schools
action find
entity Kirby Hendee
relation country of citizenship
['Kirby Hendee', 'country of citizenship', 'Caswell County Schools']
ASK WHERE { resource:Kirby_Hendee property:country_of_citizenship resource:Caswell_County_Schools }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6414920,P27,Q5050954)
action is_in
entity Q5050954
action find
entity Q6414920
relation P27
[ANSWER]
['Q6414920', 'P27', 'Q5050954']
ASK WHERE { resource:Q6414920 property:P27 resource:Q5050954 }
No
action is_in
entity Caswell County Schools
action find
entity Kirby Hendee
relation country of citizenship
['Kirby Hendee', 'country of citizenship', 'Caswell County Schools']
ASK WHERE { resource:Kirby_Hendee property:country_of_citizenship resource:Caswell_County_Schools }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q769
P706
Q1048835 Q107425 Q1048835
USER
Which political territories are located in less number of political territories or landscapes than Grenada ?
(c(Q1048835),P706,c(Q1048835)|c(Q107425))
action less
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action count
action filter_multi_types
action find
entity Q769
relation P706
type Q1048835
type Q107425
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?s WHERE { VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } . ?n rdf:type ?b } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } } . resource:Q769 property:P706 ?v } } . FILTER ( ?y < ?g ) }
Grenada
action less
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action count
action filter_multi_types
action find
entity Grenada
relation located on terrain feature
type political territorial entity
type landscape
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?s WHERE { VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } . ?n rdf:type ?b } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ?f . VALUES ( ?f ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } } . resource:Grenada property:located_on_terrain_feature ?v } } . FILTER ( ?y < ?g ) }
[]
political territorial entity landscape political territorial entity
Q691 Q766 Q778
SYSTEM
Papua New Guinea, Jamaica, The Bahamas
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q13353 Q6139 Q847324 Q785 Q847321 Q850989 Q983467 Q743716 Q734805 Q904566 Q555140 Q983463 Q13737 Q493017 Q42314 Q950940 Q669078 Q851224 Q898856 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q168856 Q5785 Q3405693 Q7198529 Q832991 Q13751 Q13752 Q975679 Q601112 Q984496 Q743741 Q988714 Q25228 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q202023 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q8583 Q652988 Q832967 Q185409 Q170213 Q766 Q9676 Q984485 Q168159 Q983625 Q983628 Q8593 Q656449 Q988688 Q18221 Q778 Q213361 Q984493 Q984491 Q984499 Q3396832 Q5700 Q988696 Q943948 Q697126 Q25305 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q1048835)|c(Q107425))
action less
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action count
action filter_multi_types
action find
entity Q769
relation P706
type Q1048835
type Q107425
[ANSWERS] are located in less number of political territories or landscapes than Grenada
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?s WHERE { VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } . ?n rdf:type ?b } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } } . resource:Q769 property:P706 ?v } } . FILTER ( ?y < ?g ) }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Montserrat Havelland Alaior Jersey Esporles Campanet Montuïri Campos Sant Antoni de Portmany Brecqhou Capileira Sant Llorenç des Cardassar Basilan Andratx Channel Islands Marratxí Maria de la Salut Costitx Jethou Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Chernivtsi Oblast Cayman Islands Sark Pistyll Sóller Biliran Bohol Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Anguilla Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Herm Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Vulkaneifel Búger Valldemossa Llubí Zakarpattia Oblast Jamaica Isle of Man Es Migjorn Gran Anglesey Puigpunyent Sant Joan de Labritja Mayen-Koblenz Ariany, Majorca Inca Turks and Caicos Islands The Bahamas Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Lapland Mancor de la Vall Santa Maria del Camí Bridgend County Borough British Virgin Islands Banyalbufar Son Servera Capdepera
Papua New Guinea, Jamaica and The Bahamas are located in less number of political territories or landscapes than Grenada
Papua New Guinea Jamaica The Bahamas
action less
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action count
action filter_multi_types
action find
entity Grenada
relation located on terrain feature
type political territorial entity
type landscape
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?s WHERE { VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } . ?n rdf:type ?b } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ?f . VALUES ( ?f ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } } . resource:Grenada property:located_on_terrain_feature ?v } } . FILTER ( ?y < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q16
P530
Q1048835 Q1048835
USER
Which political territories are known to have diplomatic connections with lesser number of political territories than Canada ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?x ) WHERE { ?n property:P530 ?f . ?n rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?n } . FILTER ( ?x < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?z } } }
Canada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?x ) WHERE { ?n property:diplomatic_relation ?f . ?n rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?n } . FILTER ( ?x < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?z } } }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWERS] are known to have diplomatic connections with lesser number of political territories than Canada
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?x ) WHERE { ?n property:P530 ?f . ?n rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?n } . FILTER ( ?x < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?z } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand are known to have diplomatic connections with lesser number of political territories than Canada
Denmark Austria New Zealand
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?x ) WHERE { ?n property:diplomatic_relation ?f . ?n rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?n } . FILTER ( ?x < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?z } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q1048835
USER
And how about Denmark?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Q35 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?o ) WHERE { ?u property:P530 ?x . ?u rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?u } }
Denmark
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Denmark property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?o ) WHERE { ?u property:diplomatic_relation ?x . ?u rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
political territorial entity political territorial entity
Q40 Q1000 Q769
SYSTEM
Austria, Gabon, Grenada
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Q35 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?o ) WHERE { ?u property:P530 ?x . ?u rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?u } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Austria Gabon Grenada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { resource:Denmark property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?o ) WHERE { ?u property:diplomatic_relation ?x . ?u rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have diplomatic relations with those political territories ?
(Q230,P530,Q40) (Q230,P530,Q1000) (Q230,P530,Q769)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q40'] ['Q230', 'P530', 'Q1000'] ['Q230', 'P530', 'Q769']
ASK WHERE { resource:Q230 property:P530 ?f . VALUES ( ?f ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Austria'] ['Georgia', 'diplomatic relation', 'Gabon'] ['Georgia', 'diplomatic relation', 'Grenada']
ASK WHERE { resource:Georgia property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q40) (Q230,P530,Q1000) (Q230,P530,Q769)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q40'] ['Q230', 'P530', 'Q1000'] ['Q230', 'P530', 'Q769']
ASK WHERE { resource:Q230 property:P530 ?f . VALUES ( ?f ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Austria'] ['Georgia', 'diplomatic relation', 'Gabon'] ['Georgia', 'diplomatic relation', 'Grenada']
ASK WHERE { resource:Georgia property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P127
Q1048835 Q3947 Q7743
USER
Which political territories own min number of houses or homes ?
(c(Q3947)|c(Q7743),P127,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
[[{'concept': 'Q3947'}, {'concept': 'Q7743'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?n WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3947 ) ( ontology:Q7743 ) } } GROUP BY ?n } . FILTER ( ?t = ?q ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?p WHERE { { ?x property:P127 ?p . ?p rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q3947 } UNION { ?p rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q7743 . ?x property:P127 ?p } } GROUP BY ?p } } }
action argmin
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type house
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
[[{'concept': 'house'}, {'concept': 'home'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?n WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:house ) ( ontology:home ) } } GROUP BY ?n } . FILTER ( ?t = ?q ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?p WHERE { { ?x property:owned_by ?p . ?p rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:house } UNION { ?p rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:home . ?x property:owned_by ?p } } GROUP BY ?p } } }
[]
political territorial entity house home
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q5756
(c(Q3947)|c(Q7743),P127,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
[ANSWERS] own min number of houses or homes
[[{'concept': 'Q3947'}, {'concept': 'Q7743'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?n WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3947 ) ( ontology:Q7743 ) } } GROUP BY ?n } . FILTER ( ?t = ?q ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?p WHERE { { ?x property:P127 ?p . ?p rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q3947 } UNION { ?p rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q7743 . ?x property:P127 ?p } } GROUP BY ?p } } }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada Community of Madrid
Australia, Denmark and Canada own min number of houses or homes
Australia Denmark Canada
action argmin
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type house
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
[[{'concept': 'house'}, {'concept': 'home'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?n WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:house ) ( ontology:home ) } } GROUP BY ?n } . FILTER ( ?t = ?q ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?p WHERE { { ?x property:owned_by ?p . ?p rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:house } UNION { ?p rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:home . ?x property:owned_by ?p } } GROUP BY ?p } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with exactly 4 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?k ) WHERE { ?p property:P530 ?q . ?p rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?k = 4 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?k ) WHERE { ?p property:diplomatic_relation ?q . ?p rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?k = 4 ) }
[]
political territorial entity political territorial entity
SYSTEM
1
Q16
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?k ) WHERE { ?p property:P530 ?q . ?p rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?k = 4 ) }
Canada
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?k ) WHERE { ?p property:diplomatic_relation ?q . ?p rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?k = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16191225 Q6414920
P27
Q15617994
USER
Which administrative territories are the native countriesof Kirby Hendee or T. N. Seema ?
OR((Q6414920,P27,c(Q15617994)), (Q16191225,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6414920
relation P27
action find
entity Q16191225
relation P27
type Q15617994
{'OR': [['Q6414920', 'P27', {'concept': 'Q15617994'}], ['Q16191225', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q6414920 property:P27 ?a } UNION { resource:Q16191225 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
T. N. Seema Kirby Hendee
action filter_type
action union
action find
entity Kirby Hendee
relation country of citizenship
action find
entity T. N. Seema
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kirby Hendee', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['T. N. Seema', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Kirby_Hendee property:country_of_citizenship ?a } UNION { resource:T._N._Seema property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q668
SYSTEM
United States of America, India
Q30 Q668
OR((Q6414920,P27,c(Q15617994)), (Q16191225,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6414920
relation P27
action find
entity Q16191225
relation P27
type Q15617994
[ANSWERS] are the native countriesof Kirby Hendee or T. N. Seema
{'OR': [['Q6414920', 'P27', {'concept': 'Q15617994'}], ['Q16191225', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q6414920 property:P27 ?a } UNION { resource:Q16191225 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
United States of America India
United States of America and India are the native countriesof Kirby Hendee or T. N. Seema
United States of America India
action filter_type
action union
action find
entity Kirby Hendee
relation country of citizenship
action find
entity T. N. Seema
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kirby Hendee', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['T. N. Seema', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Kirby_Hendee property:country_of_citizenship ?a } UNION { resource:T._N._Seema property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]