Simple Question (Direct)
Simple Question
Q499184
P1313
Q12737077
USER
Which occupation is fulfilled by Roquetas de Mar ?
(Q499184,P1313,c(Q12737077))
action filter_type
action find
entity Q499184
relation P1313
type Q12737077
['Q499184', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q499184 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
Roquetas de Mar
action filter_type
action find
entity Roquetas de Mar
relation office held by head of government
type occupation
['Roquetas de Mar', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Roquetas_de_Mar property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q26698360
SYSTEM
mayor of Roquetas de Mar
Q26698360
(Q499184,P1313,c(Q12737077))
action filter_type
action find
entity Q499184
relation P1313
type Q12737077
Is [ANSWER] is fulfilled by Roquetas de Mar
['Q499184', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q499184 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
mayor of Roquetas de Mar
Is mayor of Roquetas de Mar is fulfilled by Roquetas de Mar
mayor of Roquetas de Mar
action filter_type
action find
entity Roquetas de Mar
relation office held by head of government
type occupation
['Roquetas de Mar', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Roquetas_de_Mar property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q499184
P6
Q502895
USER
Which person does Roquetas de Mar serve as the head of government for ?
(Q499184,P6,c(Q502895))
action filter_type
action find
entity Q499184
relation P6
type Q502895
['Q499184', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q499184 property:P6 ?s }
Roquetas de Mar
action filter_type
action find
entity Roquetas de Mar
relation head of government
type common name
['Roquetas de Mar', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Roquetas_de_Mar property:head_of_government ?s }
[]
common name
Q14025691
SYSTEM
Gabriel Amat Ayllon
Q14025691
(Q499184,P6,c(Q502895))
action filter_type
action find
entity Q499184
relation P6
type Q502895
Roquetas de Mar serves as the head of government [ANSWER]
['Q499184', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q499184 property:P6 ?s }
Gabriel Amat Ayllon
Roquetas de Mar serves as the head of government Gabriel Amat Ayllon
Gabriel Amat Ayllon
action filter_type
action find
entity Roquetas de Mar
relation head of government
type common name
['Roquetas de Mar', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Roquetas_de_Mar property:head_of_government ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q499184
P47
Q1048835
USER
Which political territories are bordered by Roquetas de Mar ?
(c(Q1048835),P47,Q499184)
action filter_type
action find
entity Q499184
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q499184']
SELECT DISTINCT ?m WHERE { resource:Q499184 property:P47 ?m . ?m rdf:type ontology:Q1048835 }
Roquetas de Mar
action filter_type
action find
entity Roquetas de Mar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Roquetas de Mar']
SELECT DISTINCT ?m WHERE { resource:Roquetas_de_Mar property:shares_border_with ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q947285 Q1110397 Q493933
SYSTEM
Enix, Spain, Vícar, El Ejido
Q493933 Q947285 Q1110397 Q1407170
(c(Q1048835),P47,Q499184)
action filter_type
action find
entity Q499184
relation P47
type Q1048835
[ANSWERS] are bordered by Roquetas de Mar
[{'concept': 'Q1048835'}, 'P47', 'Q499184']
SELECT DISTINCT ?m WHERE { resource:Q499184 property:P47 ?m . ?m rdf:type ontology:Q1048835 }
El Ejido Enix, Spain Vícar La Mojonera
Enix, Spain, Vícar and El Ejido are bordered by Roquetas de Mar
Enix, Spain Vícar El Ejido
action filter_type
action find
entity Roquetas de Mar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Roquetas de Mar']
SELECT DISTINCT ?m WHERE { resource:Roquetas_de_Mar property:shares_border_with ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q947285 Q1110397 Q493933
P47
Q1048835
USER
Which political territories do Enix, Spain, Vícar and El Ejido share a border with ?
(c(Q1048835),P47,Q947285) (c(Q1048835),P47,Q1110397) (c(Q1048835),P47,Q493933)
action union
action filter_type
action find_reverse
entity Q493933
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q947285
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1110397
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q947285'] [{'concept': 'Q1048835'}, 'P47', 'Q1110397'] [{'concept': 'Q1048835'}, 'P47', 'Q493933']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q1048835 . ?f property:P47 resource:Q947285 } UNION { ?f property:P47 resource:Q493933 . ?f rdf:type ontology:Q1048835 } }
Enix, Spain Vícar El Ejido
action union
action filter_type
action find_reverse
entity El Ejido
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Enix, Spain
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Vícar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Enix, Spain'] [{'concept': 'political territorial entity'}, 'shares border with', 'Vícar'] [{'concept': 'political territorial entity'}, 'shares border with', 'El Ejido']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:political_territorial_entity . ?f property:shares_border_with resource:Enix,_Spain } UNION { ?f property:shares_border_with resource:El_Ejido . ?f rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q947285 Q940842 Q1110389
SYSTEM
Enix, Spain, Gádor, Dalías
Q940842 Q499184 Q1110397 Q583010 Q493933 Q1407170 Q1110389 Q947285 Q499184 Q1407170 Q1110389 Q491929 Q499184 Q1110397
(c(Q1048835),P47,Q947285) (c(Q1048835),P47,Q1110397) (c(Q1048835),P47,Q493933)
action union
action filter_type
action find_reverse
entity Q493933
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q947285
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1110397
relation P47
type Q1048835
[ANSWERS] Enix, Spain, Vícar and El Eji share a border with
[{'concept': 'Q1048835'}, 'P47', 'Q947285'] [{'concept': 'Q1048835'}, 'P47', 'Q1110397'] [{'concept': 'Q1048835'}, 'P47', 'Q493933']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q1048835 . ?f property:P47 resource:Q947285 } UNION { ?f property:P47 resource:Q493933 . ?f rdf:type ontology:Q1048835 } }
Gádor Roquetas de Mar Vícar Alhama de Almería El Ejido La Mojonera Dalías Enix, Spain Roquetas de Mar La Mojonera Dalías Berja Roquetas de Mar Vícar
Enix, Spain, Gádor and Dalías Enix, Spain, Vícar and El Eji share a border with
Enix, Spain Gádor Dalías
action union
action filter_type
action find_reverse
entity El Ejido
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Enix, Spain
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Vícar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Enix, Spain'] [{'concept': 'political territorial entity'}, 'shares border with', 'Vícar'] [{'concept': 'political territorial entity'}, 'shares border with', 'El Ejido']
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:political_territorial_entity . ?f property:shares_border_with resource:Enix,_Spain } UNION { ?f property:shares_border_with resource:El_Ejido . ?f rdf:type ontology:political_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1110389
P19
Q502895
USER
Which people have place of birth as that political territory ?
(c(Q502895),P19,Q1110389)
action filter_type
action find_reverse
entity Q1110389
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q1110389']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P19 resource:Q1110389 }
Dalías
action filter_type
action find_reverse
entity Dalías
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Dalías']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:place_of_birth resource:Dalías }
[]
common name
Clarification for simple ques.
Q947285
SYSTEM
Did you mean Enix, Spain ?
Q947285 Q940842 Q1110389
(c(Q502895),P19,Q947285) (c(Q502895),P19,Q940842) (c(Q502895),P19,Q1110389)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q947285'] [{'concept': 'Q502895'}, 'P19', 'Q940842'] [{'concept': 'Q502895'}, 'P19', 'Q1110389']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P19 resource:Q1110389 }
Enix, Spain Gádor Dalías
Did you mean Enix, Spain ?
Enix, Spain
[{'concept': 'common name'}, 'place of birth', 'Enix, Spain'] [{'concept': 'common name'}, 'place of birth', 'Gádor'] [{'concept': 'common name'}, 'place of birth', 'Dalías']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:place_of_birth resource:Dalías }
[]
Simple Question (Coreferenced)
USER
No, I meant Dalías. Could you tell me the answer for that?
(c(Q502895),P19,Q1110389)
Q1110389
[{'concept': 'Q502895'}, 'P19', 'Q1110389']
[{'concept': 'common name'}, 'place of birth', 'Dalías']
[]
Q967400 Q3751049
SYSTEM
José María Rubio, Al-Udri
Q3751049 Q967400
(c(Q502895),P19,Q1110389)
action filter_type
action find_reverse
entity Q1110389
relation P19
type Q502895
[ANSWERS] have place of birth as that political territory
[{'concept': 'Q502895'}, 'P19', 'Q1110389']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P19 resource:Q1110389 }
Al-Udri José María Rubio
José María Rubio and Al-Udri have place of birth as that political territory
José María Rubio Al-Udri
action filter_type
action find_reverse
entity Dalías
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Dalías']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:place_of_birth resource:Dalías }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q107425 Q1048835 Q1048835
USER
Which political territories are located in min number of landscapes and political territories ?
(c(Q1048835),P706,c(Q107425)|c(Q1048835))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q107425'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?q WHERE { VALUES ( ?e ) { ( ontology:Q107425 ) ( ontology:Q1048835 ) } . ?p rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( MIN ( ?t ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?d WHERE { { ?d property:P706 ?s . ?d rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q107425 } UNION { ?d rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 . ?d property:P706 ?s } } GROUP BY ?d } } }
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landscape'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?q WHERE { VALUES ( ?e ) { ( ontology:landscape ) ( ontology:political_territorial_entity ) } . ?p rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( MIN ( ?t ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?d WHERE { { ?d property:located_on_terrain_feature ?s . ?d rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:landscape } UNION { ?d rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?d property:located_on_terrain_feature ?s } } GROUP BY ?d } } }
[]
landscape political territorial entity 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(Q107425)|c(Q1048835))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
[ANSWERS] are located in min number of landscapes and political territories
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q107425'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?q WHERE { VALUES ( ?e ) { ( ontology:Q107425 ) ( ontology:Q1048835 ) } . ?p rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( MIN ( ?t ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?d WHERE { { ?d property:P706 ?s . ?d rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q107425 } UNION { ?d rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 . ?d property:P706 ?s } } GROUP BY ?d } } }
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 min number of landscapes and political territories
Papua New Guinea Jamaica The Bahamas
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landscape'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?q WHERE { FILTER ( ?f = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?q WHERE { VALUES ( ?e ) { ( ontology:landscape ) ( ontology:political_territorial_entity ) } . ?p rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( MIN ( ?t ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?d WHERE { { ?d property:located_on_terrain_feature ?s . ?d rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:landscape } UNION { ?d rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?d property:located_on_terrain_feature ?s } } GROUP BY ?d } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19262751 Q493933
P17
Q15617994
USER
Which administrative territories are El Ejido or Jan van Nijlenhove situated in ?
OR((Q493933,P17,c(Q15617994)), (Q19262751,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q493933
relation P17
action find
entity Q19262751
relation P17
type Q15617994
{'OR': [['Q493933', 'P17', {'concept': 'Q15617994'}], ['Q19262751', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?r ) { ( resource:Q493933 ) ( resource:Q19262751 ) } . ?r property:P17 ?n } . ?n rdf:type ontology:Q15617994 }
Jan van Nijlenhove El Ejido
action filter_type
action union
action find
entity El Ejido
relation country
action find
entity Jan van Nijlenhove
relation country
type designation for an administrative territorial entity
{'OR': [['El Ejido', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jan van Nijlenhove', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?r ) { ( resource:El_Ejido ) ( resource:Jan_van_Nijlenhove ) } . ?r property:country ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q55
SYSTEM
Spain, Netherlands
Q29 Q55
OR((Q493933,P17,c(Q15617994)), (Q19262751,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q493933
relation P17
action find
entity Q19262751
relation P17
type Q15617994
El Ejido or Jan van Nijlenhove are situated in [ANSWERS]
{'OR': [['Q493933', 'P17', {'concept': 'Q15617994'}], ['Q19262751', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?r ) { ( resource:Q493933 ) ( resource:Q19262751 ) } . ?r property:P17 ?n } . ?n rdf:type ontology:Q15617994 }
Spain Netherlands
El Ejido or Jan van Nijlenhove are situated in Spain and Netherlands
Spain Netherlands
action filter_type
action union
action find
entity El Ejido
relation country
action find
entity Jan van Nijlenhove
relation country
type designation for an administrative territorial entity
{'OR': [['El Ejido', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jan van Nijlenhove', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?r ) { ( resource:El_Ejido ) ( resource:Jan_van_Nijlenhove ) } . ?r property:country ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have diplomatic relations with those administrative territories ?
(Q408,P530,Q29) (Q408,P530,Q55)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q29'] ['Q408', 'P530', 'Q55']
ASK WHERE { resource:Q408 property:P530 ?u . VALUES ( ?u ) { ( resource:Q29 ) ( resource:Q55 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Spain'] ['Australia', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Australia property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Spain ) ( resource:Netherlands ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q29) (Q408,P530,Q55)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q29'] ['Q408', 'P530', 'Q55']
ASK WHERE { resource:Q408 property:P530 ?u . VALUES ( ?u ) { ( resource:Q29 ) ( resource:Q55 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Spain'] ['Australia', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Australia property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Spain ) ( resource:Netherlands ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with around 74 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 74
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?l ) WHERE { ?o property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?l = 74 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 74
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?l ) WHERE { ?o property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?l = 74 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 74
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?l ) WHERE { ?o property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?l = 74 ) }
Australia Canada
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 74
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?l ) WHERE { ?o property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?l = 74 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q1048835 Q3947 Q15700808
USER
Which political territories are max number of houses and urban unit definitions present in ?
(c(Q3947)|c(Q15700808),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q15700808
[[{'concept': 'Q3947'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?p WHERE { { ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q3947 . ?e property:P17 ?p } UNION { ?e property:P17 ?p . ?e rdf:type ontology:Q15700808 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?p } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?u WHERE { { ?u rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q3947 . ?n property:P17 ?u } UNION { ?n property:P17 ?u . ?n rdf:type ontology:Q15700808 . ?u rdf:type ontology:Q1048835 } } GROUP BY ?u } } }
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type house
action find_reverse_tuple_counts
relation country
type political territorial entity
type urban unit definition
[[{'concept': 'house'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?p WHERE { { ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:house . ?e property:country ?p } UNION { ?e property:country ?p . ?e rdf:type ontology:urban_unit_definition . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?p } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?u WHERE { { ?u rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:house . ?n property:country ?u } UNION { ?n property:country ?u . ?n rdf:type ontology:urban_unit_definition . ?u rdf:type ontology:political_territorial_entity } } GROUP BY ?u } } }
[]
political territorial entity house urban unit definition
Q408
SYSTEM
Australia
Q408
(c(Q3947)|c(Q15700808),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q15700808
Which political territories is max number of houses and urban unit definitions present in
[[{'concept': 'Q3947'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?p WHERE { { ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q3947 . ?e property:P17 ?p } UNION { ?e property:P17 ?p . ?e rdf:type ontology:Q15700808 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?p } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?u WHERE { { ?u rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q3947 . ?n property:P17 ?u } UNION { ?n property:P17 ?u . ?n rdf:type ontology:Q15700808 . ?u rdf:type ontology:Q1048835 } } GROUP BY ?u } } }
Australia
Which political territories is max number of houses and urban unit definitions present in
Australia
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type house
action find_reverse_tuple_counts
relation country
type political territorial entity
type urban unit definition
[[{'concept': 'house'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?p WHERE { { ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:house . ?e property:country ?p } UNION { ?e property:country ?p . ?e rdf:type ontology:urban_unit_definition . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?p } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?u WHERE { { ?u rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:house . ?n property:country ?u } UNION { ?n property:country ?u . ?n rdf:type ontology:urban_unit_definition . ?u rdf:type ontology:political_territorial_entity } } GROUP BY ?u } } }
[]