Simple Question (Direct)
Simple Question
Q15715674
P21
Q290
USER
What is the sex of Josef Barth ?
(Q15715674,P21,c(Q290))
action filter_type
action find
entity Q15715674
relation P21
type Q290
['Q15715674', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q15715674 property:P21 ?o . ?o rdf:type ontology:Q290 }
Josef Barth
action filter_type
action find
entity Josef Barth
relation gender
type sex
['Josef Barth', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Josef_Barth property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15715674,P21,c(Q290))
action filter_type
action find
entity Q15715674
relation P21
type Q290
The sex of Josef Barth is a [ANSWER]
['Q15715674', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q15715674 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of Josef Barth is a male
male
action filter_type
action find
entity Josef Barth
relation gender
type sex
['Josef Barth', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Josef_Barth property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15715674
P1196
Q1931388
USER
What manner did that person die ?
(Q6581097,P1196,c(Q1931388))
action filter_type
action find
entity Q15715674
relation P1196
type Q1931388
['Q6581097', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?y WHERE { resource:Q15715674 property:P1196 ?y . ?y rdf:type ontology:Q1931388 }
Josef Barth
action filter_type
action find
entity Josef Barth
relation manner of death
type cause of death
['male', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?y WHERE { resource:Josef_Barth property:manner_of_death ?y . ?y rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q6581097,P1196,c(Q1931388))
action filter_type
action find
entity Q15715674
relation P1196
type Q1931388
That person died in [ANSWER]
['Q6581097', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?y WHERE { resource:Q15715674 property:P1196 ?y . ?y rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Josef Barth
relation manner of death
type cause of death
['male', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?y WHERE { resource:Josef_Barth property:manner_of_death ?y . ?y rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q81982
P1303
Q34379 Q502895
USER
How many musical instruments can greater number of people perform with than harpsichord ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q81982
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:P1303 ?e . ?o rdf:type ontology:Q502895 . ?e rdf:type ontology:Q34379 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:Q34379 . resource:Q81982 property:P1303 ?u } } . FILTER ( ?f > ?m ) }
harpsichord
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harpsichord
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:instrument ?e . ?o rdf:type ontology:common_name . ?e rdf:type ontology:musical_instrument } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:musical_instrument . resource:harpsichord property:instrument ?u } } . FILTER ( ?f > ?m ) }
[]
musical instrument common name
SYSTEM
10
Q80284 Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q81982
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:P1303 ?e . ?o rdf:type ontology:Q502895 . ?e rdf:type ontology:Q34379 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:Q34379 . resource:Q81982 property:P1303 ?u } } . FILTER ( ?f > ?m ) }
viola bass guitar double bass piano trumpet cello violin organ drum kit electronic keyboard
10
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harpsichord
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?f ) WHERE { ?o property:instrument ?e . ?o rdf:type ontology:common_name . ?e rdf:type ontology:musical_instrument } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ontology:musical_instrument . resource:harpsichord property:instrument ?u } } . FILTER ( ?f > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q379248
P1303
Q34379 Q502895
USER
And also tell me about Timbales?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q379248
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?v > ?h ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Q379248 property:P1303 ?y . ?y rdf:type ontology:Q34379 } } }
Timbales
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Timbales
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?v > ?h ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Timbales property:instrument ?y . ?y rdf:type ontology:musical_instrument } } }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q379248
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?v > ?h ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Q379248 property:P1303 ?y . ?y rdf:type ontology:Q34379 } } }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Timbales
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?v > ?h ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { resource:Timbales property:instrument ?y . ?y rdf:type ontology:musical_instrument } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atmost 5707 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5707
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?j <= 5707 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5707
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?j <= 5707 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5707
[ANSWERS] can atmost 5707 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?j <= 5707 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano can atmost 5707 people perform with
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5707
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?j ) WHERE { ?t property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?j <= 5707 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1759986
P17
Q15617994
USER
Which administrative territory is that musical instrument present in ?
(Q1759986,P17,c(Q15617994))
action filter_type
action find
entity Q1759986
relation P17
type Q15617994
['Q1759986', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1759986 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Wurlitzer electric piano
action filter_type
action find
entity Wurlitzer electric piano
relation country
type designation for an administrative territorial entity
['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Wurlitzer_electric_piano property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1178361
SYSTEM
Did you mean davul ?
Q1178361 Q81982 Q1759986
(Q1178361,P17,c(Q15617994)) (Q81982,P17,c(Q15617994)) (Q1759986,P17,c(Q15617994))
[ANSWER]
['Q1178361', 'P17', {'concept': 'Q15617994'}] ['Q81982', 'P17', {'concept': 'Q15617994'}] ['Q1759986', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1759986 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
davul harpsichord Wurlitzer electric piano
Did you mean davul ?
davul
['davul', 'country', {'concept': 'designation for an administrative territorial entity'}] ['harpsichord', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Wurlitzer_electric_piano property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Wurlitzer electric piano. Could you tell me the answer for that?
(Q1759986,P17,c(Q15617994))
Q1759986
['Q1759986', 'P17', {'concept': 'Q15617994'}]
['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q1759986,P17,c(Q15617994))
action filter_type
action find
entity Q1759986
relation P17
type Q15617994
That musical instrument is the [ANSWER]
['Q1759986', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q1759986 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
United States of America
That musical instrument is the United States of America
United States of America
action filter_type
action find
entity Wurlitzer electric piano
relation country
type designation for an administrative territorial entity
['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Wurlitzer_electric_piano property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with exactly 10 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 10
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:P530 ?j . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?y = 10 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:diplomatic_relation ?j . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?y = 10 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q403 Q1011
SYSTEM
Serbia, Cape Verde
Q403 Q1011
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 10
[ANSWERS] have diplomatic relations with exactly 10 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:P530 ?j . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?y = 10 ) }
Serbia Cape Verde
Serbia and Cape Verde have diplomatic relations with exactly 10 administrative territories
Serbia Cape Verde
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:diplomatic_relation ?j . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?y = 10 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q40948 Q403
P47
Q15617994
USER
Which administrative territories have a shared border with Serbia or Chignolo Po ?
OR((Q403,P47,c(Q15617994)), (Q40948,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q403
relation P47
action find
entity Q40948
relation P47
type Q15617994
{'OR': [['Q403', 'P47', {'concept': 'Q15617994'}], ['Q40948', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q403 property:P47 ?p } UNION { resource:Q40948 property:P47 ?p } } . ?p rdf:type ontology:Q15617994 }
Chignolo Po Serbia
action filter_type
action union
action find
entity Serbia
relation shares border with
action find
entity Chignolo Po
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Serbia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Chignolo Po', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Serbia property:shares_border_with ?p } UNION { resource:Chignolo_Po property:shares_border_with ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39756 Q102965 Q219 Q225 Q40527 Q28 Q236 Q39866 Q222 Q39830
SYSTEM
Some of them are Santa Cristina e Bissone, Rottofreno, Bulgaria, Bosnia and Herzegovina, Miradolo Terme, Hungary, Montenegro, Monticelli Pavese, Albania, Badia Pavese
Q225 Q224 Q222 Q221 Q39830 Q219 Q218 Q42404 Q236 Q42407 Q39756 Q102965 Q28 Q39866 Q40527
OR((Q403,P47,c(Q15617994)), (Q40948,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q403
relation P47
action find
entity Q40948
relation P47
type Q15617994
[ANSWERS] have a shared border with Serbia or Chignolo Po
{'OR': [['Q403', 'P47', {'concept': 'Q15617994'}], ['Q40948', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q403 property:P47 ?p } UNION { resource:Q40948 property:P47 ?p } } . ?p rdf:type ontology:Q15617994 }
Bosnia and Herzegovina Croatia Albania Republic of Macedonia Badia Pavese Bulgaria Romania San Colombano al Lambro Montenegro Orio Litta Santa Cristina e Bissone Rottofreno Hungary Monticelli Pavese Miradolo Terme
Santa Cristina e Bissone, Rottofreno, Bulgaria, Bosnia and Herzegovina, Miradolo Terme, Hungary, Montenegro, Monticelli Pavese, Albania and Badia Pavese have a shared border with Serbia or Chignolo Po
Santa Cristina e Bissone Rottofreno Bulgaria Bosnia and Herzegovina Miradolo Terme Hungary Montenegro Monticelli Pavese Albania Badia Pavese
action filter_type
action union
action find
entity Serbia
relation shares border with
action find
entity Chignolo Po
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Serbia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Chignolo Po', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Serbia property:shares_border_with ?p } UNION { resource:Chignolo_Po property:shares_border_with ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q56061
USER
How many administrative territories and administrative territories are adjacent to that administrative territory ?
(Q219,P47,c(Q15617994)) (Q219,P47,c(Q56061)) (Q39756,P47,c(Q15617994)) (Q39756,P47,c(Q56061)) (Q102965,P47,c(Q15617994)) (Q102965,P47,c(Q56061)) (Q219,P47,c(Q15617994)) (Q219,P47,c(Q56061)) (Q225,P47,c(Q15617994)) (Q225,P47,c(Q56061)) (Q40527,P47,c(Q15617994)) (Q40527,P47,c(Q56061)) (Q28,P47,c(Q15617994)) (Q28,P47,c(Q56061)) (Q236,P47,c(Q15617994)) (Q236,P47,c(Q56061)) (Q39866,P47,c(Q15617994)) (Q39866,P47,c(Q56061)) (Q222,P47,c(Q15617994)) (Q222,P47,c(Q56061)) (Q39830,P47,c(Q15617994)) (Q39830,P47,c(Q56061))
['Q219', 'P47', {'concept': 'Q15617994'}] ['Q219', 'P47', {'concept': 'Q56061'}] ['Q39756', 'P47', {'concept': 'Q15617994'}] ['Q39756', 'P47', {'concept': 'Q56061'}] ['Q102965', 'P47', {'concept': 'Q15617994'}] ['Q102965', 'P47', {'concept': 'Q56061'}] ['Q219', 'P47', {'concept': 'Q15617994'}] ['Q219', 'P47', {'concept': 'Q56061'}] ['Q225', 'P47', {'concept': 'Q15617994'}] ['Q225', 'P47', {'concept': 'Q56061'}] ['Q40527', 'P47', {'concept': 'Q15617994'}] ['Q40527', 'P47', {'concept': 'Q56061'}] ['Q28', 'P47', {'concept': 'Q15617994'}] ['Q28', 'P47', {'concept': 'Q56061'}] ['Q236', 'P47', {'concept': 'Q15617994'}] ['Q236', 'P47', {'concept': 'Q56061'}] ['Q39866', 'P47', {'concept': 'Q15617994'}] ['Q39866', 'P47', {'concept': 'Q56061'}] ['Q222', 'P47', {'concept': 'Q15617994'}] ['Q222', 'P47', {'concept': 'Q56061'}] ['Q39830', 'P47', {'concept': 'Q15617994'}] ['Q39830', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q219 property:P47 ?z } UNION { resource:Q219 property:P47 ?y } UNION { resource:Q39756 property:P47 ?z } UNION { resource:Q39756 property:P47 ?y } UNION { resource:Q102965 property:P47 ?z } UNION { resource:Q102965 property:P47 ?y } UNION { resource:Q219 property:P47 ?z } UNION { resource:Q219 property:P47 ?y } UNION { resource:Q225 property:P47 ?z } UNION { resource:Q225 property:P47 ?y } UNION { resource:Q40527 property:P47 ?z } UNION { resource:Q40527 property:P47 ?y } UNION { resource:Q5943060 property:P47 ?z } UNION { resource:Q5943060 property:P47 ?y } UNION { resource:Q357350 property:P47 ?z } UNION { resource:Q357350 property:P47 ?y } UNION { resource:Q39866 property:P47 ?z } UNION { resource:Q39866 property:P47 ?y } UNION { resource:Q18350825 property:P47 ?z } UNION { resource:Q18350825 property:P47 ?y } UNION { resource:Q39830 property:P47 ?z } UNION { resource:Q39830 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
['Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Santa Cristina e Bissone', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Santa Cristina e Bissone', 'shares border with', {'concept': 'administrative territorial entity'}] ['Rottofreno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rottofreno', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bosnia and Herzegovina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bosnia and Herzegovina', 'shares border with', {'concept': 'administrative territorial entity'}] ['Miradolo Terme', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Miradolo Terme', 'shares border with', {'concept': 'administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'administrative territorial entity'}] ['Montenegro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Montenegro', 'shares border with', {'concept': 'administrative territorial entity'}] ['Monticelli Pavese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Monticelli Pavese', 'shares border with', {'concept': 'administrative territorial entity'}] ['Albania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Albania', 'shares border with', {'concept': 'administrative territorial entity'}] ['Badia Pavese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Badia Pavese', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Bulgaria property:shares_border_with ?z } UNION { resource:Bulgaria property:shares_border_with ?y } UNION { resource:Santa_Cristina_e_Bissone property:shares_border_with ?z } UNION { resource:Santa_Cristina_e_Bissone property:shares_border_with ?y } UNION { resource:Rottofreno property:shares_border_with ?z } UNION { resource:Rottofreno property:shares_border_with ?y } UNION { resource:Bulgaria property:shares_border_with ?z } UNION { resource:Bulgaria property:shares_border_with ?y } UNION { resource:Bosnia_and_Herzegovina property:shares_border_with ?z } UNION { resource:Bosnia_and_Herzegovina property:shares_border_with ?y } UNION { resource:Miradolo_Terme property:shares_border_with ?z } UNION { resource:Miradolo_Terme property:shares_border_with ?y } UNION { resource:Hungary property:shares_border_with ?z } UNION { resource:Hungary property:shares_border_with ?y } UNION { resource:Montenegro property:shares_border_with ?z } UNION { resource:Montenegro property:shares_border_with ?y } UNION { resource:Monticelli_Pavese property:shares_border_with ?z } UNION { resource:Monticelli_Pavese property:shares_border_with ?y } UNION { resource:Albania property:shares_border_with ?z } UNION { resource:Albania property:shares_border_with ?y } UNION { resource:Badia_Pavese property:shares_border_with ?z } UNION { resource:Badia_Pavese property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
designation for an administrative territorial entity administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q219
SYSTEM
Did you mean Bulgaria ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q219 property:P47 ?z } UNION { resource:Q219 property:P47 ?y } UNION { resource:Q39756 property:P47 ?z } UNION { resource:Q39756 property:P47 ?y } UNION { resource:Q102965 property:P47 ?z } UNION { resource:Q102965 property:P47 ?y } UNION { resource:Q219 property:P47 ?z } UNION { resource:Q219 property:P47 ?y } UNION { resource:Q225 property:P47 ?z } UNION { resource:Q225 property:P47 ?y } UNION { resource:Q40527 property:P47 ?z } UNION { resource:Q40527 property:P47 ?y } UNION { resource:Q5943060 property:P47 ?z } UNION { resource:Q5943060 property:P47 ?y } UNION { resource:Q357350 property:P47 ?z } UNION { resource:Q357350 property:P47 ?y } UNION { resource:Q39866 property:P47 ?z } UNION { resource:Q39866 property:P47 ?y } UNION { resource:Q18350825 property:P47 ?z } UNION { resource:Q18350825 property:P47 ?y } UNION { resource:Q39830 property:P47 ?z } UNION { resource:Q39830 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Did you mean Bulgaria ?
Bulgaria
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Bulgaria property:shares_border_with ?z } UNION { resource:Bulgaria property:shares_border_with ?y } UNION { resource:Santa_Cristina_e_Bissone property:shares_border_with ?z } UNION { resource:Santa_Cristina_e_Bissone property:shares_border_with ?y } UNION { resource:Rottofreno property:shares_border_with ?z } UNION { resource:Rottofreno property:shares_border_with ?y } UNION { resource:Bulgaria property:shares_border_with ?z } UNION { resource:Bulgaria property:shares_border_with ?y } UNION { resource:Bosnia_and_Herzegovina property:shares_border_with ?z } UNION { resource:Bosnia_and_Herzegovina property:shares_border_with ?y } UNION { resource:Miradolo_Terme property:shares_border_with ?z } UNION { resource:Miradolo_Terme property:shares_border_with ?y } UNION { resource:Hungary property:shares_border_with ?z } UNION { resource:Hungary property:shares_border_with ?y } UNION { resource:Montenegro property:shares_border_with ?z } UNION { resource:Montenegro property:shares_border_with ?y } UNION { resource:Monticelli_Pavese property:shares_border_with ?z } UNION { resource:Monticelli_Pavese property:shares_border_with ?y } UNION { resource:Albania property:shares_border_with ?z } UNION { resource:Albania property:shares_border_with ?y } UNION { resource:Badia_Pavese property:shares_border_with ?z } UNION { resource:Badia_Pavese property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q219,P47,c(Q15617994)) (Q219,P47,c(Q56061)) (Q39756,P47,c(Q15617994)) (Q39756,P47,c(Q56061)) (Q102965,P47,c(Q15617994)) (Q102965,P47,c(Q56061)) (Q219,P47,c(Q15617994)) (Q219,P47,c(Q56061)) (Q225,P47,c(Q15617994)) (Q225,P47,c(Q56061)) (Q40527,P47,c(Q15617994)) (Q40527,P47,c(Q56061)) (Q28,P47,c(Q15617994)) (Q28,P47,c(Q56061)) (Q236,P47,c(Q15617994)) (Q236,P47,c(Q56061)) (Q39866,P47,c(Q15617994)) (Q39866,P47,c(Q56061)) (Q222,P47,c(Q15617994)) (Q222,P47,c(Q56061)) (Q39830,P47,c(Q15617994)) (Q39830,P47,c(Q56061))
['Q219', 'P47', {'concept': 'Q15617994'}] ['Q219', 'P47', {'concept': 'Q56061'}] ['Q39756', 'P47', {'concept': 'Q15617994'}] ['Q39756', 'P47', {'concept': 'Q56061'}] ['Q102965', 'P47', {'concept': 'Q15617994'}] ['Q102965', 'P47', {'concept': 'Q56061'}] ['Q219', 'P47', {'concept': 'Q15617994'}] ['Q219', 'P47', {'concept': 'Q56061'}] ['Q225', 'P47', {'concept': 'Q15617994'}] ['Q225', 'P47', {'concept': 'Q56061'}] ['Q40527', 'P47', {'concept': 'Q15617994'}] ['Q40527', 'P47', {'concept': 'Q56061'}] ['Q28', 'P47', {'concept': 'Q15617994'}] ['Q28', 'P47', {'concept': 'Q56061'}] ['Q236', 'P47', {'concept': 'Q15617994'}] ['Q236', 'P47', {'concept': 'Q56061'}] ['Q39866', 'P47', {'concept': 'Q15617994'}] ['Q39866', 'P47', {'concept': 'Q56061'}] ['Q222', 'P47', {'concept': 'Q15617994'}] ['Q222', 'P47', {'concept': 'Q56061'}] ['Q39830', 'P47', {'concept': 'Q15617994'}] ['Q39830', 'P47', {'concept': 'Q56061'}]
['Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Santa Cristina e Bissone', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Santa Cristina e Bissone', 'shares border with', {'concept': 'administrative territorial entity'}] ['Rottofreno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rottofreno', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bosnia and Herzegovina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bosnia and Herzegovina', 'shares border with', {'concept': 'administrative territorial entity'}] ['Miradolo Terme', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Miradolo Terme', 'shares border with', {'concept': 'administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'administrative territorial entity'}] ['Montenegro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Montenegro', 'shares border with', {'concept': 'administrative territorial entity'}] ['Monticelli Pavese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Monticelli Pavese', 'shares border with', {'concept': 'administrative territorial entity'}] ['Albania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Albania', 'shares border with', {'concept': 'administrative territorial entity'}] ['Badia Pavese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Badia Pavese', 'shares border with', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
6
Q43 Q221 Q41 Q218 Q403 Q458
(Q219,P47,c(Q15617994)) (Q219,P47,c(Q56061)) (Q39756,P47,c(Q15617994)) (Q39756,P47,c(Q56061)) (Q102965,P47,c(Q15617994)) (Q102965,P47,c(Q56061)) (Q219,P47,c(Q15617994)) (Q219,P47,c(Q56061)) (Q225,P47,c(Q15617994)) (Q225,P47,c(Q56061)) (Q40527,P47,c(Q15617994)) (Q40527,P47,c(Q56061)) (Q28,P47,c(Q15617994)) (Q28,P47,c(Q56061)) (Q236,P47,c(Q15617994)) (Q236,P47,c(Q56061)) (Q39866,P47,c(Q15617994)) (Q39866,P47,c(Q56061)) (Q222,P47,c(Q15617994)) (Q222,P47,c(Q56061)) (Q39830,P47,c(Q15617994)) (Q39830,P47,c(Q56061))
[ANSWER]
['Q219', 'P47', {'concept': 'Q15617994'}] ['Q219', 'P47', {'concept': 'Q56061'}] ['Q39756', 'P47', {'concept': 'Q15617994'}] ['Q39756', 'P47', {'concept': 'Q56061'}] ['Q102965', 'P47', {'concept': 'Q15617994'}] ['Q102965', 'P47', {'concept': 'Q56061'}] ['Q219', 'P47', {'concept': 'Q15617994'}] ['Q219', 'P47', {'concept': 'Q56061'}] ['Q225', 'P47', {'concept': 'Q15617994'}] ['Q225', 'P47', {'concept': 'Q56061'}] ['Q40527', 'P47', {'concept': 'Q15617994'}] ['Q40527', 'P47', {'concept': 'Q56061'}] ['Q28', 'P47', {'concept': 'Q15617994'}] ['Q28', 'P47', {'concept': 'Q56061'}] ['Q236', 'P47', {'concept': 'Q15617994'}] ['Q236', 'P47', {'concept': 'Q56061'}] ['Q39866', 'P47', {'concept': 'Q15617994'}] ['Q39866', 'P47', {'concept': 'Q56061'}] ['Q222', 'P47', {'concept': 'Q15617994'}] ['Q222', 'P47', {'concept': 'Q56061'}] ['Q39830', 'P47', {'concept': 'Q15617994'}] ['Q39830', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q219 property:P47 ?z } UNION { resource:Q219 property:P47 ?y } UNION { resource:Q39756 property:P47 ?z } UNION { resource:Q39756 property:P47 ?y } UNION { resource:Q102965 property:P47 ?z } UNION { resource:Q102965 property:P47 ?y } UNION { resource:Q219 property:P47 ?z } UNION { resource:Q219 property:P47 ?y } UNION { resource:Q225 property:P47 ?z } UNION { resource:Q225 property:P47 ?y } UNION { resource:Q40527 property:P47 ?z } UNION { resource:Q40527 property:P47 ?y } UNION { resource:Q5943060 property:P47 ?z } UNION { resource:Q5943060 property:P47 ?y } UNION { resource:Q357350 property:P47 ?z } UNION { resource:Q357350 property:P47 ?y } UNION { resource:Q39866 property:P47 ?z } UNION { resource:Q39866 property:P47 ?y } UNION { resource:Q18350825 property:P47 ?z } UNION { resource:Q18350825 property:P47 ?y } UNION { resource:Q39830 property:P47 ?z } UNION { resource:Q39830 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Turkey Republic of Macedonia Greece Romania Serbia European Union
6
['Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Santa Cristina e Bissone', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Santa Cristina e Bissone', 'shares border with', {'concept': 'administrative territorial entity'}] ['Rottofreno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rottofreno', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bulgaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bosnia and Herzegovina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bosnia and Herzegovina', 'shares border with', {'concept': 'administrative territorial entity'}] ['Miradolo Terme', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Miradolo Terme', 'shares border with', {'concept': 'administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Hungary', 'shares border with', {'concept': 'administrative territorial entity'}] ['Montenegro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Montenegro', 'shares border with', {'concept': 'administrative territorial entity'}] ['Monticelli Pavese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Monticelli Pavese', 'shares border with', {'concept': 'administrative territorial entity'}] ['Albania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Albania', 'shares border with', {'concept': 'administrative territorial entity'}] ['Badia Pavese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Badia Pavese', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Bulgaria property:shares_border_with ?z } UNION { resource:Bulgaria property:shares_border_with ?y } UNION { resource:Santa_Cristina_e_Bissone property:shares_border_with ?z } UNION { resource:Santa_Cristina_e_Bissone property:shares_border_with ?y } UNION { resource:Rottofreno property:shares_border_with ?z } UNION { resource:Rottofreno property:shares_border_with ?y } UNION { resource:Bulgaria property:shares_border_with ?z } UNION { resource:Bulgaria property:shares_border_with ?y } UNION { resource:Bosnia_and_Herzegovina property:shares_border_with ?z } UNION { resource:Bosnia_and_Herzegovina property:shares_border_with ?y } UNION { resource:Miradolo_Terme property:shares_border_with ?z } UNION { resource:Miradolo_Terme property:shares_border_with ?y } UNION { resource:Hungary property:shares_border_with ?z } UNION { resource:Hungary property:shares_border_with ?y } UNION { resource:Montenegro property:shares_border_with ?z } UNION { resource:Montenegro property:shares_border_with ?y } UNION { resource:Monticelli_Pavese property:shares_border_with ?z } UNION { resource:Monticelli_Pavese property:shares_border_with ?y } UNION { resource:Albania property:shares_border_with ?z } UNION { resource:Albania property:shares_border_with ?y } UNION { resource:Badia_Pavese property:shares_border_with ?z } UNION { resource:Badia_Pavese property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?i ) WHERE { ?r rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 . ?r property:P530 ?c } GROUP BY ?r } } . FILTER ( ?g = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?g ) WHERE { ?d rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?d property:P530 ?k } GROUP BY ?d } }
action argmin
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 ?d WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?i ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?c } GROUP BY ?r } } . FILTER ( ?g = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?g ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?k } GROUP BY ?d } }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?i ) WHERE { ?r rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 . ?r property:P530 ?c } GROUP BY ?r } } . FILTER ( ?g = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?g ) WHERE { ?d rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?d property:P530 ?k } GROUP BY ?d } }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relations with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
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 ?d WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?i ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?c } GROUP BY ?r } } . FILTER ( ?g = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?g ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?k } GROUP BY ?d } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have a diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?w ) WHERE { ?o property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b property:P530 ?a . ?b rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } GROUP BY ?b } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?w ) WHERE { ?o property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b property:diplomatic_relation ?a . ?b rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?b } } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have a diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?w ) WHERE { ?o property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b property:P530 ?a . ?b rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } GROUP BY ?b } } }
Australia
Australia have a diplomatic relationship 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', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?w ) WHERE { ?o property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b property:diplomatic_relation ?a . ?b rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?b } } }
[]