Simple Question (Direct)
Simple Question
Q1233494
P17
Q15617994
USER
Which administrative territory is Prades, Baix Camp present in ?
(Q1233494,P17,c(Q15617994))
action filter_type
action find
entity Q1233494
relation P17
type Q15617994
['Q1233494', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1233494 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Prades, Baix Camp
action filter_type
action find
entity Prades, Baix Camp
relation country
type designation for an administrative territorial entity
['Prades, Baix Camp', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Prades,_Baix_Camp property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1233494,P17,c(Q15617994))
action filter_type
action find
entity Q1233494
relation P17
type Q15617994
Which administrative territory is Prades, Baix Camp present in
['Q1233494', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1233494 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Spain
Which administrative territory is Prades, Baix Camp present in
Spain
action filter_type
action find
entity Prades, Baix Camp
relation country
type designation for an administrative territorial entity
['Prades, Baix Camp', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Prades,_Baix_Camp property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1233494
P1001
Q12737077
USER
Which occupation presides the jurisdiction over that political territory ?
(c(Q12737077),P1001,Q29)
action filter_type
action find_reverse
entity Q1233494
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q29']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . ?r property:P1001 resource:Q1233494 }
Prades, Baix Camp
action filter_type
action find_reverse
entity Prades, Baix Camp
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Spain']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . ?r property:applies_to_jurisdiction resource:Prades,_Baix_Camp }
[]
occupation
Q26690626
SYSTEM
mayor of Prades
Q26690626
(c(Q12737077),P1001,Q29)
action filter_type
action find_reverse
entity Q1233494
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q29']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . ?r property:P1001 resource:Q1233494 }
mayor of Prades
The mayor of Prades presides the jurisdiction over that political territory
mayor of Prades
action filter_type
action find_reverse
entity Prades, Baix Camp
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Spain']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . ?r property:applies_to_jurisdiction resource:Prades,_Baix_Camp }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26694401 Q26690626
P17
Q15617994
USER
Which administrative territories are mayor of Prades or mayor of Olmedilla de Alarcón located in ?
OR((Q26690626,P17,c(Q15617994)), (Q26694401,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26690626
relation P17
action find
entity Q26694401
relation P17
type Q15617994
{'OR': [['Q26690626', 'P17', {'concept': 'Q15617994'}], ['Q26694401', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q26690626 property:P17 ?s } UNION { resource:Q26694401 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
mayor of Olmedilla de Alarcón mayor of Prades
action filter_type
action union
action find
entity mayor of Prades
relation country
action find
entity mayor of Olmedilla de Alarcón
relation country
type designation for an administrative territorial entity
{'OR': [['mayor of Prades', 'country', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Olmedilla de Alarcón', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:mayor_of_Prades property:country ?s } UNION { resource:mayor_of_Olmedilla_de_Alarcón property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
OR((Q26690626,P17,c(Q15617994)), (Q26694401,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26690626
relation P17
action find
entity Q26694401
relation P17
type Q15617994
[ANSWER] is mayor of Prades or mayor of Olmedilla de Alarcón located in
{'OR': [['Q26690626', 'P17', {'concept': 'Q15617994'}], ['Q26694401', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q26690626 property:P17 ?s } UNION { resource:Q26694401 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Spain
Spain is mayor of Prades or mayor of Olmedilla de Alarcón located in
Spain
action filter_type
action union
action find
entity mayor of Prades
relation country
action find
entity mayor of Olmedilla de Alarcón
relation country
type designation for an administrative territorial entity
{'OR': [['mayor of Prades', 'country', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Olmedilla de Alarcón', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:mayor_of_Prades property:country ?s } UNION { resource:mayor_of_Olmedilla_de_Alarcón property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q29 Q1637069 Q526769
P530
Q1048835
USER
Does that administrative territory have diplomatic associations with Jaramillo Quemado and Ipupiara ?
(Q29,P530,Q1637069) (Q29,P530,Q526769)
action is_in
entity Q29
action intersection
action find_reverse
entity Q1637069
relation P530
action find_reverse
entity Q526769
relation P530
['Q29', 'P530', 'Q1637069'] ['Q29', 'P530', 'Q526769']
ASK WHERE { resource:Q29 property:P530 resource:Q1637069 . resource:Q29 property:P530 resource:Q526769 }
Spain Jaramillo Quemado Ipupiara
action is_in
entity Spain
action intersection
action find_reverse
entity Jaramillo Quemado
relation diplomatic relation
action find_reverse
entity Ipupiara
relation diplomatic relation
['Spain', 'diplomatic relation', 'Jaramillo Quemado'] ['Spain', 'diplomatic relation', 'Ipupiara']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Jaramillo_Quemado . resource:Spain property:diplomatic_relation resource:Ipupiara }
[]
political territorial entity
SYSTEM
NO
(Q29,P530,Q1637069) (Q29,P530,Q526769)
action is_in
entity Q29
action intersection
action find_reverse
entity Q1637069
relation P530
action find_reverse
entity Q526769
relation P530
[ANSWER]
['Q29', 'P530', 'Q1637069'] ['Q29', 'P530', 'Q526769']
ASK WHERE { resource:Q29 property:P530 resource:Q1637069 . resource:Q29 property:P530 resource:Q526769 }
No
action is_in
entity Spain
action intersection
action find_reverse
entity Jaramillo Quemado
relation diplomatic relation
action find_reverse
entity Ipupiara
relation diplomatic relation
['Spain', 'diplomatic relation', 'Jaramillo Quemado'] ['Spain', 'diplomatic relation', 'Ipupiara']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Jaramillo_Quemado . resource:Spain property:diplomatic_relation resource:Ipupiara }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q11895063
P748
Q701632 Q1307214 Q12737077
USER
How many occupations did greater number of municipal councils and forms of government appoint than Minister of Transport and Communications ?
(c(Q12737077),P748,c(Q701632)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action count
action filter_multi_types
action find
entity Q11895063
relation P748
type Q701632
type Q1307214
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } } GROUP BY ?i } . FILTER ( ?a > ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Q11895063 property:P748 ?p . { { ?p rdf:type ontology:Q701632 } UNION { ?p rdf:type ontology:Q1307214 } } } } }
Minister of Transport and Communications
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type form of government
action count
action filter_multi_types
action find
entity Minister of Transport and Communications
relation appointed by
type municipal council
type form of government
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } } GROUP BY ?i } . FILTER ( ?a > ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Minister_of_Transport_and_Communications property:appointed_by ?p . { { ?p rdf:type ontology:municipal_council } UNION { ?p rdf:type ontology:form_of_government } } } } }
[]
municipal council form of government occupation
SYSTEM
30
Q20748656 Q20890913 Q21371106 Q1355456 Q1507619 Q21013169 Q910308 Q1753754 Q943379 Q20872382 Q20872273 Q20891385 Q21384866 Q20194364 Q21383592 Q583809 Q2962001 Q20859388 Q20867550 Q20872296 Q213107 Q20872339 Q162754 Q26209358 Q217217 Q20992515 Q1281611 Q26721218 Q1752225 Q687908
(c(Q12737077),P748,c(Q701632)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action count
action filter_multi_types
action find
entity Q11895063
relation P748
type Q701632
type Q1307214
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } } GROUP BY ?i } . FILTER ( ?a > ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Q11895063 property:P748 ?p . { { ?p rdf:type ontology:Q701632 } UNION { ?p rdf:type ontology:Q1307214 } } } } }
municipal executive of Zoetermeer municipal executive of Eindhoven municipal executive of Amersfoort Lord Chamberlain Deputy Prime Minister of the United Kingdom municipal executive of The Hague Lord Privy Seal Master of the Rolls Lord President of the Council municipal executive of Coevorden municipal executive of Boxmeer municipal executive of Deventer municipal executive of Rotterdam municipal executive of Amsterdam municipal executive of Haarlem Solicitor General for England and Wales Chief of the Defence Staff municipal executive of Mierlo municipal executive of Gorinchem municipal executive of Almere Prime Minister of Belgium municipal executive of Woerden Chancellor of the Duchy of Lancaster municipal executive of Warffum Lord Chancellor municipal executive of Utrecht Lieutenant Governor of Jersey municipal executive of Almere Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
30
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type form of government
action count
action filter_multi_types
action find
entity Minister of Transport and Communications
relation appointed by
type municipal council
type form of government
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } } GROUP BY ?i } . FILTER ( ?a > ?b ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Minister_of_Transport_and_Communications property:appointed_by ?p . { { ?p rdf:type ontology:municipal_council } UNION { ?p rdf:type ontology:form_of_government } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1369302
P748
Q701632 Q1307214 Q12737077
USER
And what about Secretary of State for Northern Ireland?
(c(Q12737077),P748,c(Q701632)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action count
action filter_multi_types
action find
entity Q1369302
relation P748
type Q701632
type Q1307214
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?h WHERE { VALUES ( ?w ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } . ?a rdf:type ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } } . resource:Q1369302 property:P748 ?t } } . FILTER ( ?f > ?l ) }
Secretary of State for Northern Ireland
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type form of government
action count
action filter_multi_types
action find
entity Secretary of State for Northern Ireland
relation appointed by
type municipal council
type form of government
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?h WHERE { VALUES ( ?w ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } . ?a rdf:type ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } } . resource:Secretary_of_State_for_Northern_Ireland property:appointed_by ?t } } . FILTER ( ?f > ?l ) }
[]
municipal council form of government occupation
SYSTEM
30
Q20748656 Q20890913 Q21371106 Q1355456 Q1507619 Q21013169 Q910308 Q1753754 Q943379 Q20872382 Q20872273 Q20891385 Q21384866 Q20194364 Q21383592 Q583809 Q2962001 Q20859388 Q20867550 Q20872296 Q213107 Q20872339 Q162754 Q26209358 Q217217 Q20992515 Q1281611 Q26721218 Q1752225 Q687908
(c(Q12737077),P748,c(Q701632)|c(Q1307214))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action count
action filter_multi_types
action find
entity Q1369302
relation P748
type Q701632
type Q1307214
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?h WHERE { VALUES ( ?w ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } . ?a rdf:type ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:Q701632 ) ( ontology:Q1307214 ) } } . resource:Q1369302 property:P748 ?t } } . FILTER ( ?f > ?l ) }
municipal executive of Zoetermeer municipal executive of Eindhoven municipal executive of Amersfoort Lord Chamberlain Deputy Prime Minister of the United Kingdom municipal executive of The Hague Lord Privy Seal Master of the Rolls Lord President of the Council municipal executive of Coevorden municipal executive of Boxmeer municipal executive of Deventer municipal executive of Rotterdam municipal executive of Amsterdam municipal executive of Haarlem Solicitor General for England and Wales Chief of the Defence Staff municipal executive of Mierlo municipal executive of Gorinchem municipal executive of Almere Prime Minister of Belgium municipal executive of Woerden Chancellor of the Duchy of Lancaster municipal executive of Warffum Lord Chancellor municipal executive of Utrecht Lieutenant Governor of Jersey municipal executive of Almere Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
30
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type form of government
action count
action filter_multi_types
action find
entity Secretary of State for Northern Ireland
relation appointed by
type municipal council
type form of government
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?h WHERE { VALUES ( ?w ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } . ?a rdf:type ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:municipal_council ) ( ontology:form_of_government ) } } . resource:Secretary_of_State_for_Northern_Ireland property:appointed_by ?t } } . FILTER ( ?f > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q711
P122
Q1307214 Q43229 Q15617994
USER
Which administrative territories have more number of forms of government and organizations as the form of government than Mongolia ?
(c(Q15617994),P122,c(Q1307214)|c(Q43229))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action count
action filter_multi_types
action find
entity Q711
relation P122
type Q1307214
type Q43229
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) ?o WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1307214 ) ( ontology:Q43229 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Q711 property:P122 ?n . { VALUES ( ?g ) { ( ontology:Q1307214 ) ( ontology:Q43229 ) } . ?n rdf:type ?g } } } . FILTER ( ?i > ?v ) }
Mongolia
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action count
action filter_multi_types
action find
entity Mongolia
relation basic form of government
type form of government
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'organization'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) ?o WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:form_of_government ) ( ontology:organization ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Mongolia property:basic_form_of_government ?n . { VALUES ( ?g ) { ( ontology:form_of_government ) ( ontology:organization ) } . ?n rdf:type ?g } } } . FILTER ( ?i > ?v ) }
[]
form of government organization designation for an administrative territorial entity
Q32 Q347 Q423
SYSTEM
Luxembourg, Liechtenstein, North Korea
Q154547 Q165116 Q208500 Q794 Q889 Q32 Q423 Q280312 Q238 Q347 Q199688
(c(Q15617994),P122,c(Q1307214)|c(Q43229))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action count
action filter_multi_types
action find
entity Q711
relation P122
type Q1307214
type Q43229
[ANSWERS] have more number of forms of government and organizations as the form of government than Mongolia
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) ?o WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1307214 ) ( ontology:Q43229 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Q711 property:P122 ?n . { VALUES ( ?g ) { ( ontology:Q1307214 ) ( ontology:Q43229 ) } . ?n rdf:type ?g } } } . FILTER ( ?i > ?v ) }
duchy grand duchy principality Iran Afghanistan Luxembourg North Korea Principality of Lüneburg San Marino Liechtenstein Almohad
Luxembourg, Liechtenstein and North Korea have more number of forms of government and organizations as the form of government than Mongolia
Luxembourg Liechtenstein North Korea
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action count
action filter_multi_types
action find
entity Mongolia
relation basic form of government
type form of government
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'organization'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) ?o WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:form_of_government ) ( ontology:organization ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Mongolia property:basic_form_of_government ?n . { VALUES ( ?g ) { ( ontology:form_of_government ) ( ontology:organization ) } . ?n rdf:type ?g } } } . FILTER ( ?i > ?v ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9397583 Q29
P47 P17
Q15617994
USER
Which administrative territories share the border with Spain or are Żukowo, Człuchów County situated in ?
OR((Q29,P47,c(Q15617994)), (Q9397583,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P47
action find
entity Q9397583
relation P17
type Q15617994
{'OR': [['Q29', 'P47', {'concept': 'Q15617994'}], ['Q9397583', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q9397583 property:P17 ?z } UNION { resource:Q29 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
Żukowo, Człuchów County Spain
action filter_type
action union
action find
entity Spain
relation shares border with
action find
entity Żukowo, Człuchów County
relation country
type designation for an administrative territorial entity
{'OR': [['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Żukowo, Człuchów County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Żukowo,_Człuchów_County property:country ?z } UNION { resource:Spain property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q1025 Q45 Q1028 Q228 Q36
SYSTEM
France, Mauritania, Portugal, Morocco, Andorra, Poland
Q142 Q1025 Q45 Q1028 Q228 Q36
OR((Q29,P47,c(Q15617994)), (Q9397583,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P47
action find
entity Q9397583
relation P17
type Q15617994
[ANSWERS] share the border with Spain or are Żukowo, Człuchów County situated in
{'OR': [['Q29', 'P47', {'concept': 'Q15617994'}], ['Q9397583', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q9397583 property:P17 ?z } UNION { resource:Q29 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
France Mauritania Portugal Morocco Andorra Poland
France, Mauritania, Portugal, Morocco, Andorra and Poland share the border with Spain or are Żukowo, Człuchów County situated in
France Mauritania Portugal Morocco Andorra Poland
action filter_type
action union
action find
entity Spain
relation shares border with
action find
entity Żukowo, Człuchów County
relation country
type designation for an administrative territorial entity
{'OR': [['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Żukowo, Człuchów County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Żukowo,_Człuchów_County property:country ?z } UNION { resource:Spain property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q1267889 Q15324 Q15617994
USER
How many administrative territories are located next to atleast 1 waterways and bodies of water ?
(c(Q15617994),P206,c(Q1267889)|c(Q15324))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q15324
value 1
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?c WHERE { { ?z rdf:type ontology:Q1267889 . ?c rdf:type ontology:Q15617994 . ?c property:P206 ?z } UNION { ?c property:P206 ?z . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15324 } } GROUP BY ?c } . FILTER ( ?y >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?c WHERE { { ?z rdf:type ontology:waterway . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:located_next_to_body_of_water ?z } UNION { ?c property:located_next_to_body_of_water ?z . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:body_of_water } } GROUP BY ?c } . FILTER ( ?y >= 1 ) }
[]
waterway body of water designation for an administrative territorial entity
SYSTEM
23
Q21111 Q446425 Q55 Q801 Q568926 Q884 Q216422 Q36 Q34 Q38 Q769680 Q236 Q20 Q3038 Q225 Q224 Q222 Q17 Q1577 Q516567 Q215 Q1009 Q1438
(c(Q15617994),P206,c(Q1267889)|c(Q15324))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q15324
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?c WHERE { { ?z rdf:type ontology:Q1267889 . ?c rdf:type ontology:Q15617994 . ?c property:P206 ?z } UNION { ?c property:P206 ?z . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15324 } } GROUP BY ?c } . FILTER ( ?y >= 1 ) }
Corn Islands Altwarp Netherlands Israel Maasholm South Korea Samsø Poland Sweden Italy Bornholm Montenegro Norway Helgoland Bosnia and Herzegovina Croatia Albania Japan Neuwerk Kappeln Slovenia Cameroon Campania
23
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?c WHERE { { ?z rdf:type ontology:waterway . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:located_next_to_body_of_water ?z } UNION { ?c property:located_next_to_body_of_water ?z . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:body_of_water } } GROUP BY ?c } . FILTER ( ?y >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q5962346 Q15617994
USER
How many administrative territories designates atleast 1 languages or classification schemes as their official language ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action atleast
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { FILTER ( ?e >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?c WHERE { { ?c property:P37 ?d . ?d rdf:type ontology:Q34770 . ?c rdf:type ontology:Q15617994 } UNION { ?c property:P37 ?d . ?c rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q5962346 } } GROUP BY ?c } }
action count
action atleast
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { FILTER ( ?e >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?c WHERE { { ?c property:official_language ?d . ?d rdf:type ontology:language . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:official_language ?d . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:classification_scheme } } GROUP BY ?c } }
[]
language classification scheme designation for an administrative territorial entity
SYSTEM
86
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q29 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q750 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
action atleast
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { FILTER ( ?e >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?c WHERE { { ?c property:P37 ?d . ?d rdf:type ontology:Q34770 . ?c rdf:type ontology:Q15617994 } UNION { ?c property:P37 ?d . ?c rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q5962346 } } GROUP BY ?c } }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Spain Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Bolivia Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
86
action count
action atleast
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { FILTER ( ?e >= 1 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?c WHERE { { ?c property:official_language ?d . ?d rdf:type ontology:language . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:official_language ?d . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:classification_scheme } } GROUP BY ?c } }
[]