Simple Question (Direct)
Simple Question
Q5232644
P69
Q159334
USER
Which secondary school is David Crawford an alumni of ?
(Q5232644,P69,c(Q159334))
action filter_type
action find
entity Q5232644
relation P69
type Q159334
['Q5232644', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?s WHERE { resource:Q5232644 property:P69 ?s . ?s rdf:type ontology:Q159334 }
David Crawford
action filter_type
action find
entity David Crawford
relation educated at
type secondary school
['David Crawford', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?s WHERE { resource:David_Crawford property:educated_at ?s . ?s rdf:type ontology:secondary_school }
[]
secondary school
Q4782975
SYSTEM
Aquinas College, Perth
Q4782975
(Q5232644,P69,c(Q159334))
action filter_type
action find
entity Q5232644
relation P69
type Q159334
[ANSWER] is David Crawford an alumni of
['Q5232644', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?s WHERE { resource:Q5232644 property:P69 ?s . ?s rdf:type ontology:Q159334 }
Aquinas College, Perth
Aquinas College, Perth is David Crawford an alumni of
Aquinas College, Perth
action filter_type
action find
entity David Crawford
relation educated at
type secondary school
['David Crawford', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?s WHERE { resource:David_Crawford property:educated_at ?s . ?s rdf:type ontology:secondary_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5232644
P21
Q290
USER
What is the sex of David Crawford ?
(Q5232644,P21,c(Q290))
action filter_type
action find
entity Q5232644
relation P21
type Q290
['Q5232644', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q5232644 property:P21 ?t . ?t rdf:type ontology:Q290 }
David Crawford
action filter_type
action find
entity David Crawford
relation gender
type sex
['David Crawford', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:David_Crawford property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5232644,P21,c(Q290))
action filter_type
action find
entity Q5232644
relation P21
type Q290
The sex of David Crawford is a [ANSWER]
['Q5232644', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q5232644 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
The sex of David Crawford is a male
male
action filter_type
action find
entity David Crawford
relation gender
type sex
['David Crawford', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:David_Crawford property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5232644
P106
Q12737077
USER
What do David Crawford do for a living ?
(Q5232644,P106,c(Q12737077))
action filter_type
action find
entity Q5232644
relation P106
type Q12737077
['Q5232644', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q5232644 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
David Crawford
action filter_type
action find
entity David Crawford
relation occupation
type occupation
['David Crawford', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:David_Crawford property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q13414980 Q15117302
SYSTEM
Australian-rules footballer, volleyball player
Q13414980 Q15117302
(Q5232644,P106,c(Q12737077))
action filter_type
action find
entity Q5232644
relation P106
type Q12737077
[ANSWERS] David Crawford do for a living
['Q5232644', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q5232644 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Australian-rules footballer volleyball player
Australian-rules footballer and volleyball player David Crawford do for a living
Australian-rules footballer volleyball player
action filter_type
action find
entity David Crawford
relation occupation
type occupation
['David Crawford', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:David_Crawford property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5232644
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q13414980,P27,c(Q1048835)) (Q15117302,P27,c(Q1048835))
action filter_type
action find
entity Q5232644
relation P27
type Q1048835
['Q13414980', 'P27', {'concept': 'Q1048835'}] ['Q15117302', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q5232644 property:P27 ?o . ?o rdf:type ontology:Q1048835 }
David Crawford
action filter_type
action find
entity David Crawford
relation country of citizenship
type political territorial entity
['Australian-rules footballer', 'country of citizenship', {'concept': 'political territorial entity'}] ['volleyball player', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:David_Crawford property:country_of_citizenship ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q13414980,P27,c(Q1048835)) (Q15117302,P27,c(Q1048835))
action filter_type
action find
entity Q5232644
relation P27
type Q1048835
That person belongs to an [ANSWER]
['Q13414980', 'P27', {'concept': 'Q1048835'}] ['Q15117302', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q5232644 property:P27 ?o . ?o rdf:type ontology:Q1048835 }
Australia
That person belongs to an Australia
Australia
action filter_type
action find
entity David Crawford
relation country of citizenship
type political territorial entity
['Australian-rules footballer', 'country of citizenship', {'concept': 'political territorial entity'}] ['volleyball player', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:David_Crawford property:country_of_citizenship ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships 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 ?h WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?j ) WHERE { ?m property:P530 ?g . ?m rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?m } } . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?t ) WHERE { ?h property:P530 ?y . ?h rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?t = ?o ) }
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 ?h WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?j ) WHERE { ?m property:diplomatic_relation ?g . ?m rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?t ) WHERE { ?h property:diplomatic_relation ?y . ?h rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?t = ?o ) }
[]
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 diplomatic relationships with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?j ) WHERE { ?m property:P530 ?g . ?m rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?m } } . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?t ) WHERE { ?h property:P530 ?y . ?h rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?t = ?o ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic relationships 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 ?h WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?j ) WHERE { ?m property:diplomatic_relation ?g . ?m rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?t ) WHERE { ?h property:diplomatic_relation ?y . ?h rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?t = ?o ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
Which political territories do more number of people belong to than that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|More/Less|Single entity type|Clarification
Q691
SYSTEM
Did you mean Papua New Guinea ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Papua New Guinea ?
Papua New Guinea
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Grenada. Could you tell me the answer for that?
(c(Q502895),P27,c(Q1048835))
Q769
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q1000 Q1747689 Q838261 Q183 Q691 Q664 Q766 Q781 Q5705 Q16 Q35 Q40 Q778 Q408
(c(Q502895),P27,c(Q1048835))
[ANSWERS] more number of people belong to than that political territory
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Gabon Ancient Rome Federal Republic of Yugoslavia Germany Papua New Guinea New Zealand Jamaica Antigua and Barbuda Catalonia Canada Denmark Austria The Bahamas Australia
Germany, Australia and Denmark more number of people belong to than that political territory
Germany Australia Denmark
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1427
Q1048835 Q2912397
USER
How many political territories are the starting points of approximately the same number of single-day races as that political territory ?
(c(Q2912397),P1427,c(Q1048835))
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1427 ?y . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:start_point ?y . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity single-day race
Comparative|Count over More/Less|Single entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
(c(Q2912397),P1427,c(Q1048835))
[ANSWER]
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1427 ?y . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 }
Did you mean Germany ?
Germany
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:start_point ?y . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2912397),P1427,c(Q1048835))
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
[]
SYSTEM
79
Q572800 Q15907 Q1443867 Q1556707 Q55480 Q937763 Q593620 Q615841 Q183 Q1552975 Q496424 Q1628353 Q301437 Q2264671 Q1628379 Q49661 Q1607762 Q536682 Q641221 Q1647365 Q671341 Q1765676 Q848172 Q1442183 Q847329 Q1766072 Q1605692 Q11492 Q642046 Q1625868 Q430454 Q956524 Q1646362 Q1641632 Q488555 Q371748 Q1375842 Q739495 Q832991 Q1649616 Q474080 Q634078 Q1186888 Q15486 Q499184 Q1629539 Q851020 Q846153 Q1621191 Q668016 Q490638 Q913277 Q12540 Q77433 Q15640 Q492748 Q601112 Q1374736 Q1617896 Q12686 Q533277 Q743741 Q484552 Q636467 Q648921 Q818341 Q564773 Q221749 Q13614 Q639412 Q12647 Q825883 Q976528 Q1771143 Q987453 Q693913 Q1605993 Q604810 Q592747
(c(Q2912397),P1427,c(Q1048835))
[ANSWER]
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1427 ?y . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 }
Alcañiz Rota Los Corrales de Buelna Vila Nova de Cacela Colmenar Viejo Graus Monachil Puebla de Don Fadrique Germany Sabiñánigo Calatayud Sasamón Priego de Córdoba El Palomar Mairena del Alcor Mauren Cenlle Belorado Viveiro Urdazubi/Urdax Betanzos Torredelcampo Caleruega Sober Comillas Santo Domingo de Silos Palomares del Río Mataró Calahorra Alcañices Roa, Burgos Maella Villalpando Jódar Baeza San Lorenzo de El Escorial Ortigueira Vilanova de Arousa Sóller Orio Amorebieta-Etxano Marín, Pontevedra Denbigh Bagà Roquetas de Mar Salvaterra de Miño Xàbia San Roque A Estrada Iurreta Almendralejo Mazarrón Calella Leganés Sant Joan Despí Estepona Pollença Lalín Maceda Rialp Almonaster la Real Felanitx Algeciras Benicàssim Etxebarria Monforte de Lemos Alhendín Torrevieja Banyoles Tarazona Vielha e Mijaran Valls Alhaurín de la Torre Carboneras de Guadazaón San Javier Medina del Campo Cistierna Markina-Xemein Las Rozas de Madrid
79
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:start_point ?y . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity }
[]
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 diplomatic relationships with around 6 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?k ) WHERE { ?w property:P530 ?c . ?w rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?k = 6 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?k ) WHERE { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?k = 6 ) }
[]
political territorial entity political territorial entity
SYSTEM
2
Q183 Q16
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 6
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?k ) WHERE { ?w property:P530 ?c . ?w rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?k = 6 ) }
Germany Canada
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 6
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?k ) WHERE { ?w property:diplomatic_relation ?c . ?w rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?k = 6 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories holds 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 ?x WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 . ?c property:P530 ?b } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?k ) WHERE { ?x property:P530 ?d . ?x rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?k = ?u ) }
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 ?x WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation ?b } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?k ) WHERE { ?x property:diplomatic_relation ?d . ?x rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?k = ?u ) }
[]
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] hold diplomatic relationship with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 . ?c property:P530 ?b } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?k ) WHERE { ?x property:P530 ?d . ?x rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?k = ?u ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea hold 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 ?x WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?u ) { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?w ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation ?b } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?k ) WHERE { ?x property:diplomatic_relation ?d . ?x rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?k = ?u ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic associations with atmost 5 political territories ?
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?v ) WHERE { ?z property:P530 ?n . ?z rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?v <= 5 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?v ) WHERE { ?z property:diplomatic_relation ?n . ?z rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?v <= 5 ) }
[]
political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[ANSWERS] have diplomatic associations with atmost 5 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?v ) WHERE { ?z property:P530 ?n . ?z rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?v <= 5 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic associations with atmost 5 political territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?v ) WHERE { ?z property:diplomatic_relation ?n . ?z rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?v <= 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have diplomatic relationships with exactly 1 administrative territories and political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?j } . FILTER ( ?g = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?j } . FILTER ( ?g = 1 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWERS] have diplomatic relationships with exactly 1 administrative territories and political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?j } . FILTER ( ?g = 1 ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relationships with exactly 1 administrative territories and political territories
Solomon Islands Papua New Guinea
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?j } . FILTER ( ?g = 1 ) }
[]