Simple Question (Direct)
Simple Question
Q2564979
P21
Q290
USER
Which sex does Lieven Dehandschutter possess ?
(Q2564979,P21,c(Q290))
action filter_type
action find
entity Q2564979
relation P21
type Q290
['Q2564979', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q2564979 property:P21 ?v . ?v rdf:type ontology:Q290 }
Lieven Dehandschutter
action filter_type
action find
entity Lieven Dehandschutter
relation gender
type sex
['Lieven Dehandschutter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Lieven_Dehandschutter property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2564979,P21,c(Q290))
action filter_type
action find
entity Q2564979
relation P21
type Q290
Lieven Dehandschutter possesses un [ANSWER]
['Q2564979', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q2564979 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
Lieven Dehandschutter possesses un male
male
action filter_type
action find
entity Lieven Dehandschutter
relation gender
type sex
['Lieven Dehandschutter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Lieven_Dehandschutter property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2564979
P6
Q56061
USER
Which administrative territory has a government lead by Lieven Dehandschutter ?
(c(Q56061),P6,Q2564979)
action filter_type
action find_reverse
entity Q2564979
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q2564979']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . ?l property:P6 resource:Q2564979 }
Lieven Dehandschutter
action filter_type
action find_reverse
entity Lieven Dehandschutter
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Lieven Dehandschutter']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . ?l property:head_of_government resource:Lieven_Dehandschutter }
[]
administrative territorial entity
Q13127
SYSTEM
Sint-Niklaas
Q13127
(c(Q56061),P6,Q2564979)
action filter_type
action find_reverse
entity Q2564979
relation P6
type Q56061
[ANSWER] has a government lead by Lieven Dehandschutter
[{'concept': 'Q56061'}, 'P6', 'Q2564979']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . ?l property:P6 resource:Q2564979 }
Sint-Niklaas
Sint-Niklaas has a government lead by Lieven Dehandschutter
Sint-Niklaas
action filter_type
action find_reverse
entity Lieven Dehandschutter
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Lieven Dehandschutter']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . ?l property:head_of_government resource:Lieven_Dehandschutter }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13127
P163
Q17335294
USER
What is associated with that administrative territory ?
(Q13127,P163,c(Q17335294))
action filter_type
action find
entity Q13127
relation P163
type Q17335294
['Q13127', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?f WHERE { resource:Q13127 property:P163 ?f . ?f rdf:type ontology:Q17335294 }
Sint-Niklaas
action filter_type
action find
entity Sint-Niklaas
relation flag
type flag or coat of arms
['Sint-Niklaas', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?f WHERE { resource:Sint-Niklaas property:flag ?f . ?f rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q19915225
SYSTEM
flag of Sint-Niklaas
Q19915225
(Q13127,P163,c(Q17335294))
action filter_type
action find
entity Q13127
relation P163
type Q17335294
Provincial [ANSWER] is associated with that administrative territory
['Q13127', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?f WHERE { resource:Q13127 property:P163 ?f . ?f rdf:type ontology:Q17335294 }
flag of Sint-Niklaas
Provincial flag of Sint-Niklaas is associated with that administrative territory
flag of Sint-Niklaas
action filter_type
action find
entity Sint-Niklaas
relation flag
type flag or coat of arms
['Sint-Niklaas', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?f WHERE { resource:Sint-Niklaas property:flag ?f . ?f rdf:type ontology:flag_or_coat_of_arms }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q19915225 Q13127
P163
Q56061
USER
Is Sint-Niklaas associated with that coat of arms ?
(Q13127,P163,Q19915225)
action is_in
entity Q19915225
action find
entity Q13127
relation P163
['Q13127', 'P163', 'Q19915225']
ASK WHERE { resource:Q13127 property:P163 resource:Q19915225 }
flag of Sint-Niklaas Sint-Niklaas
action is_in
entity flag of Sint-Niklaas
action find
entity Sint-Niklaas
relation flag
['Sint-Niklaas', 'flag', 'flag of Sint-Niklaas']
ASK WHERE { resource:Sint-Niklaas property:flag resource:flag_of_Sint-Niklaas }
[]
administrative territorial entity
SYSTEM
YES
(Q13127,P163,Q19915225)
action is_in
entity Q19915225
action find
entity Q13127
relation P163
[ANSWER]
['Q13127', 'P163', 'Q19915225']
ASK WHERE { resource:Q13127 property:P163 resource:Q19915225 }
Yes
action is_in
entity flag of Sint-Niklaas
action find
entity Sint-Niklaas
relation flag
['Sint-Niklaas', 'flag', 'flag of Sint-Niklaas']
ASK WHERE { resource:Sint-Niklaas property:flag resource:flag_of_Sint-Niklaas }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13127
P159
Q43229
USER
Which organization has HQ at Sint-Niklaas ?
(c(Q43229),P159,Q13127)
action filter_type
action find_reverse
entity Q13127
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q13127']
SELECT DISTINCT ?g WHERE { ?g property:P159 resource:Q13127 . ?g rdf:type ontology:Q43229 }
Sint-Niklaas
action filter_type
action find_reverse
entity Sint-Niklaas
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Sint-Niklaas']
SELECT DISTINCT ?g WHERE { ?g property:headquarters_location resource:Sint-Niklaas . ?g rdf:type ontology:organization }
[]
organization
Q4611579
SYSTEM
EDPnet
Q4611579
(c(Q43229),P159,Q13127)
action filter_type
action find_reverse
entity Q13127
relation P159
type Q43229
[ANSWER] has HQ at Sint-Niklaas
[{'concept': 'Q43229'}, 'P159', 'Q13127']
SELECT DISTINCT ?g WHERE { ?g property:P159 resource:Q13127 . ?g rdf:type ontology:Q43229 }
EDPnet
EDPnet has HQ at Sint-Niklaas
EDPnet
action filter_type
action find_reverse
entity Sint-Niklaas
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Sint-Niklaas']
SELECT DISTINCT ?g WHERE { ?g property:headquarters_location resource:Sint-Niklaas . ?g rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13127
P190
Q515
USER
Which city is twin town of that administrative territory ?
(c(Q515),P190,Q4611579)
action filter_type
action find
entity Q13127
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q4611579']
SELECT DISTINCT ?l WHERE { resource:Q13127 property:P190 ?l . ?l rdf:type ontology:Q515 }
Sint-Niklaas
action filter_type
action find
entity Sint-Niklaas
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'EDPnet']
SELECT DISTINCT ?l WHERE { resource:Sint-Niklaas property:sister_city ?l . ?l rdf:type ontology:city }
[]
city
Q193721
SYSTEM
Tábor
Q193721
(c(Q515),P190,Q4611579)
action filter_type
action find
entity Q13127
relation P190
type Q515
[ANSWER] is twin town of that administrative territory
[{'concept': 'Q515'}, 'P190', 'Q4611579']
SELECT DISTINCT ?l WHERE { resource:Q13127 property:P190 ?l . ?l rdf:type ontology:Q515 }
Tábor
Tábor is twin town of that administrative territory
Tábor
action filter_type
action find
entity Sint-Niklaas
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'EDPnet']
SELECT DISTINCT ?l WHERE { resource:Sint-Niklaas property:sister_city ?l . ?l rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q2342494 Q166142
USER
How many administrative territories are the narrative locations of exactly 3 collectables and applications ?
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
value 3
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { VALUES ( ?j ) { ( ontology:Q166142 ) ( ontology:Q2342494 ) } . ?x rdf:type ?j } GROUP BY ?s } . FILTER ( ?a = 3 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
value 3
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { VALUES ( ?j ) { ( ontology:application ) ( ontology:collectable ) } . ?x rdf:type ?j } GROUP BY ?s } . FILTER ( ?a = 3 ) }
[]
administrative territorial entity collectable application
SYSTEM
5
Q1748 Q134672 Q2634 Q64 Q42448
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
value 3
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { VALUES ( ?j ) { ( ontology:Q166142 ) ( ontology:Q2342494 ) } . ?x rdf:type ?j } GROUP BY ?s } . FILTER ( ?a = 3 ) }
Copenhagen Exeter Naples Berlin Sheffield
5
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
value 3
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?s WHERE { VALUES ( ?j ) { ( ontology:application ) ( ontology:collectable ) } . ?x rdf:type ?j } GROUP BY ?s } . FILTER ( ?a = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q193721
P17
Q15617994
USER
Which administrative territory is Tábor situated in ?
(Q193721,P17,c(Q15617994))
action filter_type
action find
entity Q193721
relation P17
type Q15617994
['Q193721', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q193721 property:P17 ?o }
Tábor
action filter_type
action find
entity Tábor
relation country
type designation for an administrative territorial entity
['Tábor', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tábor property:country ?o }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
(Q193721,P17,c(Q15617994))
action filter_type
action find
entity Q193721
relation P17
type Q15617994
Tábor is situated in [ANSWER]
['Q193721', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q193721 property:P17 ?o }
Czech Republic
Tábor is situated in Czech Republic
Czech Republic
action filter_type
action find
entity Tábor
relation country
type designation for an administrative territorial entity
['Tábor', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tábor property:country ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26540627
Q15617994
USER
And how about Grange Farmhouse?
(Q26540627,P17,c(Q15617994))
action filter_type
action find
entity Q26540627
relation P17
type Q15617994
['Q26540627', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q26540627 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Grange Farmhouse
action filter_type
action find
entity Grange Farmhouse
relation country
type designation for an administrative territorial entity
['Grange Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Grange_Farmhouse property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26540627,P17,c(Q15617994))
action filter_type
action find
entity Q26540627
relation P17
type Q15617994
[ANSWER]
['Q26540627', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q26540627 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Grange Farmhouse
relation country
type designation for an administrative territorial entity
['Grange Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Grange_Farmhouse property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q11204 Q1752346 Q15617994
USER
Which administrative territories have approximately 1 legislatures and assemblies as their legislative body ?
(c(Q15617994),P194,c(Q11204)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } . ?q rdf:type ?t } GROUP BY ?r } . FILTER ( ?i = 1 ) }
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:legislature ) ( ontology:assembly ) } . ?q rdf:type ?t } GROUP BY ?r } . FILTER ( ?i = 1 ) }
[]
legislature assembly designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q804 Q801 Q800 Q1462 Q1250 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q786 Q710 Q717 Q1460 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q4628 Q779011 Q889 Q884 Q958 Q12574 Q1965 Q12761 Q242 Q244 Q33 Q31 Q30 Q37 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q1447 Q1282 Q1284 Q3389 Q236 Q747074 Q72449 Q233 Q238 Q12661 Q20 Q1273 Q28 Q29 Q1279 Q1049 Q783 Q184 Q1458 Q228 Q227 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q17 Q902 Q191 Q697 Q298 Q114 Q754 Q750 Q213 Q211 Q214 Q215 Q218 Q219 Q1210 Q917 Q16110 Q736 Q34020 Q686 Q760 Q574 Q79 Q77 Q1222 Q774 Q811 Q1016 Q27 Q1243 Q1013 Q12626 Q672 Q176 Q1952 Q869 Q1237
(c(Q15617994),P194,c(Q11204)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[ANSWERS] have approximately 1 legislatures and assemblies as their legislative body
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } . ?q rdf:type ?t } GROUP BY ?r } . FILTER ( ?i = 1 ) }
Yemen Panama Israel Costa Rica Sardinia Friuli–Venezia Giulia Peru India Argentina France Netherlands United Kingdom People's Republic of China Iceland Dominican Republic Kiribati Venezuela Sicily Chad South Africa Portugal Turkey Greece Brazil El Salvador Faroe Islands Principality of Montenegro Afghanistan South Korea South Sudan Loiret New Brunswick Seine-Saint-Denis Belize Barbados Finland Belgium United States of America Lithuania Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Apulia Lazio Abruzzo Finistère Montenegro comune of Italy Roccarainola Malta San Marino Nord Norway Tuscany Hungary Spain Marche Sudan Honduras Belarus Calabria Andorra Azerbaijan Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Japan Bangladesh Estonia Nauru Chile Kenya Trinidad and Tobago Bolivia Czech Republic Latvia Slovakia Slovenia Romania Bulgaria Lombardy Bhutan region of Italy Ecuador Niue Vanuatu Saint Lucia East Timor Egypt Uruguay Aosta Valley Guatemala Nicaragua Libya Ireland Veneto Lesotho Meurthe-et-Moselle Tuvalu Quebec Nova Scotia Thailand Trentino-South Tyrol
Italy, Brazil and United States of America have approximately 1 legislatures and assemblies as their legislative body
Italy Brazil United States of America
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:legislature ) ( ontology:assembly ) } . ?q rdf:type ?t } GROUP BY ?r } . FILTER ( ?i = 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1001
Q1292279 Q192350
USER
How many political borders or ministries apply to jurisdiction over that administrative territory ?
(c(Q1292279),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q1292279),P1001,Q38) (c(Q192350),P1001,Q38) (c(Q1292279),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q1292279),P1001,Q30) (c(Q192350),P1001,Q30)
[{'concept': 'Q1292279'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q1292279'}, 'P1001', 'Q38'] [{'concept': 'Q192350'}, 'P1001', 'Q38'] [{'concept': 'Q1292279'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q1292279'}, 'P1001', 'Q30'] [{'concept': 'Q192350'}, 'P1001', 'Q30']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q977238 } UNION { ?y property:P1001 resource:Q977238 } UNION { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q30 } UNION { ?y property:P1001 resource:Q30 } } . ?z rdf:type ontology:Q1292279 . ?y rdf:type ontology:Q192350 }
[{'concept': 'political border'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'political border'}, 'applies to jurisdiction', 'United States of America'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'United States of America']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:Italy } UNION { ?y property:applies_to_jurisdiction resource:Italy } UNION { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:United_States_of_America } UNION { ?y property:applies_to_jurisdiction resource:United_States_of_America } } . ?z rdf:type ontology:political_border . ?y rdf:type ontology:ministry }
[]
political border ministry
Quantitative|Count|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q977238 } UNION { ?y property:P1001 resource:Q977238 } UNION { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q30 } UNION { ?y property:P1001 resource:Q30 } } . ?z rdf:type ontology:Q1292279 . ?y rdf:type ontology:Q192350 }
Did you mean Brazil ?
Brazil
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:Italy } UNION { ?y property:applies_to_jurisdiction resource:Italy } UNION { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:United_States_of_America } UNION { ?y property:applies_to_jurisdiction resource:United_States_of_America } } . ?z rdf:type ontology:political_border . ?y rdf:type ontology:ministry }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q1292279),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q1292279),P1001,Q38) (c(Q192350),P1001,Q38) (c(Q1292279),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q1292279),P1001,Q30) (c(Q192350),P1001,Q30)
[{'concept': 'Q1292279'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q1292279'}, 'P1001', 'Q38'] [{'concept': 'Q192350'}, 'P1001', 'Q38'] [{'concept': 'Q1292279'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q1292279'}, 'P1001', 'Q30'] [{'concept': 'Q192350'}, 'P1001', 'Q30']
[{'concept': 'political border'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'political border'}, 'applies to jurisdiction', 'United States of America'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'United States of America']
[]
SYSTEM
11
Q2720214 Q3089013 Q3089018 Q2456673 Q1993845 Q1993066 Q2631814 Q4294676 Q2573418 Q1993469 Q1993494
(c(Q1292279),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q1292279),P1001,Q38) (c(Q192350),P1001,Q38) (c(Q1292279),P1001,Q155) (c(Q192350),P1001,Q155) (c(Q1292279),P1001,Q30) (c(Q192350),P1001,Q30)
[ANSWER]
[{'concept': 'Q1292279'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q1292279'}, 'P1001', 'Q38'] [{'concept': 'Q192350'}, 'P1001', 'Q38'] [{'concept': 'Q1292279'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q1292279'}, 'P1001', 'Q30'] [{'concept': 'Q192350'}, 'P1001', 'Q30']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q977238 } UNION { ?y property:P1001 resource:Q977238 } UNION { ?z property:P1001 resource:Q21475816 } UNION { ?y property:P1001 resource:Q21475816 } UNION { ?z property:P1001 resource:Q30 } UNION { ?y property:P1001 resource:Q30 } } . ?z rdf:type ontology:Q1292279 . ?y rdf:type ontology:Q192350 }
Brazil–Guyana border Brazil–Suriname border Brazil–Venezuela border Brazil–Uruguay border Brazil–Paraguay border Bolivia–Brazil border Brazil–Colombia border Ministry of Agriculture of Brazil Brazil–France border Argentina–Brazil border Brazil–Peru border
11
[{'concept': 'political border'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Italy'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'political border'}, 'applies to jurisdiction', 'United States of America'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'United States of America']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:Italy } UNION { ?y property:applies_to_jurisdiction resource:Italy } UNION { ?z property:applies_to_jurisdiction resource:Brazil } UNION { ?y property:applies_to_jurisdiction resource:Brazil } UNION { ?z property:applies_to_jurisdiction resource:United_States_of_America } UNION { ?y property:applies_to_jurisdiction resource:United_States_of_America } } . ?z rdf:type ontology:political_border . ?y rdf:type ontology:ministry }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q224
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with approximately the same number of administrative territories as Croatia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q224
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?b property:P530 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q224 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?x ) }
Croatia
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Croatia property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?x ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
156
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q224
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?b property:P530 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q224 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?x ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
156
action count
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Croatia property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?x ) }
[]