Simple Question (Direct)
Simple Question
Q3188931
P734
Q82799
USER
Who is associated with Jules-Romain Tardieu ?
(Q3188931,P734,c(Q82799))
action filter_type
action find
entity Q3188931
relation P734
type Q82799
['Q3188931', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3188931 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Jules-Romain Tardieu
action filter_type
action find
entity Jules-Romain Tardieu
relation family name
type name
['Jules-Romain Tardieu', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Jules-Romain_Tardieu property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q26986282
SYSTEM
Tardieu
Q26986282
(Q3188931,P734,c(Q82799))
action filter_type
action find
entity Q3188931
relation P734
type Q82799
[ANSWER] is associated with Jules-Romain [ANSWER]
['Q3188931', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3188931 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Tardieu
Tardieu is associated with Jules-Romain Tardieu
Tardieu
action filter_type
action find
entity Jules-Romain Tardieu
relation family name
type name
['Jules-Romain Tardieu', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Jules-Romain_Tardieu property:family_name ?z . ?z rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3188931
P27
Q15617994
USER
Which administrative territory is Jules-Romain Tardieu an inhabitant of ?
(Q3188931,P27,c(Q15617994))
action filter_type
action find
entity Q3188931
relation P27
type Q15617994
['Q3188931', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3188931 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Jules-Romain Tardieu
action filter_type
action find
entity Jules-Romain Tardieu
relation country of citizenship
type designation for an administrative territorial entity
['Jules-Romain Tardieu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Jules-Romain_Tardieu property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3188931,P27,c(Q15617994))
action filter_type
action find
entity Q3188931
relation P27
type Q15617994
[ANSWER] is Jules-Romain Tardieu an inhabitant of
['Q3188931', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3188931 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
France
France is Jules-Romain Tardieu an inhabitant of
France
action filter_type
action find
entity Jules-Romain Tardieu
relation country of citizenship
type designation for an administrative territorial entity
['Jules-Romain Tardieu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Jules-Romain_Tardieu property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?i ) WHERE { ?h rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 . ?h property:P530 ?c } GROUP BY ?h } } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?d ) WHERE { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?y } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?i ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?c } GROUP BY ?h } } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?d ) WHERE { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have tactful political relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?i ) WHERE { ?h rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 . ?h property:P530 ?c } GROUP BY ?h } } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?d ) WHERE { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?y } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have tactful political relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?u ) { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?i ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?c } GROUP BY ?h } } . FILTER ( ?d = ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?d ) WHERE { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
Which political territories are the countries of citizenship of lesser number of people than that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|More/Less|Single entity type|Clarification
Q691
SYSTEM
Did you mean Papua New Guinea ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Papua New Guinea ?
Papua New Guinea
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Gabon. Could you tell me the answer for that?
(c(Q502895),P27,c(Q1048835))
Q1000
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
Q5705 Q691 Q769
SYSTEM
Catalonia, Papua New Guinea, Grenada
Q635755 Q668384 Q193714 Q746558 Q838261 Q785 Q193619 Q691 Q769 Q685 Q699964 Q763 Q1232887 Q22880 Q170361 Q1054923 Q10557 Q5720 Q505610 Q693551 Q13353 Q494354 Q650489 Q781 Q5705 Q757 Q168159 Q5785 Q109128 Q3306663 Q190959 Q11266977 Q223793 Q3995 Q130842 Q18221 Q650682 Q778 Q9676 Q217829 Q100166 Q9648 Q234 Q4040 Q2991382 Q309460 Q129286 Q168651 Q3908 Q9337 Q23635 Q192184 Q25228 Q31747 Q25305 Q79965 Q157070 Q170604
(c(Q502895),P27,c(Q1048835))
[ANSWERS] are the countries of citizenship of lesser number of people than that political territory
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Odieta Medellín Mandatory Palestine Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Papua New Guinea Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis County of Savoy Electoral Palatinate Saar British Hong Kong Swabia Valencian Country Flintshire Landgraviate of Hesse-Darmstadt Montserrat Kara-Khanid Khanate Margraviate of Baden Antigua and Barbuda Catalonia Saint Vincent and the Grenadines Anglesey Cayman Islands Gwynedd Merthyr Tydfil County Borough Transvaal Epirus Kingdom of Etruria Basque Country Greater Lebanon Turks and Caicos Islands Denbighshire The Bahamas Isle of Man Ceredigion Orkney Islands Falkland Islands Flemish Region Aragon County of Provence County of Hainaut British Raj Landgraviate of Hesse-Kassel Galicia Flemish Region Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands Golden Horde County of Flanders New France
Catalonia, Papua New Guinea and Grenada are the countries of citizenship of lesser number of people than that political territory
Catalonia Papua New Guinea Grenada
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with approximately the same number of political territories as Austria ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Q40 property:P530 ?n . ?n rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?f ) . { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?e ) WHERE { ?m property:P530 ?x . ?m rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?m } }
Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Austria property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?f ) . { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?e ) WHERE { ?m property:diplomatic_relation ?x . ?m rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?m } }
[]
political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with approximately the same number of political territories as Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Q40 property:P530 ?n . ?n rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?f ) . { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?e ) WHERE { ?m property:P530 ?x . ?m rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?m } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with approximately the same number of political territories as Austria
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { resource:Austria property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?f ) . { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?e ) WHERE { ?m property:diplomatic_relation ?x . ?m rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?m } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q685
P530
Q1048835 Q1048835
USER
And what about Solomon Islands?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?a ) WHERE { ?z rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 . ?z property:P530 ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Q685 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?a = ?q ) }
Solomon Islands
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?a ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?a = ?q ) }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?a ) WHERE { ?z rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 . ?z property:P530 ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Q685 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?a = ?q ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?p ) AS ?a ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?p } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?a = ?q ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q46810
P530
Q15617994
USER
Do Campagna Lupia have ambassadorial relations with those political territories ?
(Q46810,P530,Q35) (Q46810,P530,Q40) (Q46810,P530,Q664)
action is_in
entity prev_answer
action find
entity Q46810
relation P530
['Q46810', 'P530', 'Q35'] ['Q46810', 'P530', 'Q40'] ['Q46810', 'P530', 'Q664']
ASK WHERE { resource:Q46810 property:P530 ?y . VALUES ( ?y ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Campagna Lupia
action is_in
entity prev_answer
action find
entity Campagna Lupia
relation diplomatic relation
['Campagna Lupia', 'diplomatic relation', 'Denmark'] ['Campagna Lupia', 'diplomatic relation', 'Austria'] ['Campagna Lupia', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Campagna_Lupia property:diplomatic_relation ?y . VALUES ( ?y ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q46810,P530,Q35) (Q46810,P530,Q40) (Q46810,P530,Q664)
action is_in
entity prev_answer
action find
entity Q46810
relation P530
[ANSWER]
['Q46810', 'P530', 'Q35'] ['Q46810', 'P530', 'Q40'] ['Q46810', 'P530', 'Q664']
ASK WHERE { resource:Q46810 property:P530 ?y . VALUES ( ?y ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Campagna Lupia
relation diplomatic relation
['Campagna Lupia', 'diplomatic relation', 'Denmark'] ['Campagna Lupia', 'diplomatic relation', 'Austria'] ['Campagna Lupia', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Campagna_Lupia property:diplomatic_relation ?y . VALUES ( ?y ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with approximately 2 political territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?s ) WHERE { ?k property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?s = 2 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?s ) WHERE { ?k property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?s = 2 ) }
[]
designation for an administrative territorial entity political territorial entity
Q55 Q148 Q17
SYSTEM
Netherlands, People's Republic of China, Japan
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWERS] have a diplomatic relationship with approximately 2 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?s ) WHERE { ?k property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?s = 2 ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
Netherlands, People's Republic of China and Japan have a diplomatic relationship with approximately 2 political territories
Netherlands People's Republic of China Japan
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?s ) WHERE { ?k property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?s = 2 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2031291
USER
Which administrative territories are the countries of origin of greater number of film genres or releases than that administrative territory ?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
designation for an administrative territorial entity film genre release
Comparative|More/Less|Mult. entity type|Clarification
Q148
SYSTEM
Did you mean People's Republic of China ?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Did you mean People's Republic of China ?
People's Republic of China
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Comparative Reasoning (All)
USER
No, I meant Japan. Could you tell me the answer for that?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
Q17
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q30 Q142
SYSTEM
Italy, United States of America, France
Q142 Q145 Q30 Q34 Q38
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
[ANSWERS] are the countries of origin of greater number of film genres or releases than that administrative territory
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
France United Kingdom United States of America Sweden Italy
Italy, United States of America and France are the countries of origin of greater number of film genres or releases than that administrative territory
Italy United States of America France
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q5705
P47
Q15617994
USER
How many administrative territories share border with Catalonia ?
(Q5705,P47,c(Q15617994))
action count
action filter_type
action find
entity Q5705
relation P47
type Q15617994
['Q5705', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q5705 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Catalonia
action count
action filter_type
action find
entity Catalonia
relation shares border with
type designation for an administrative territorial entity
['Catalonia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Catalonia property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q142 Q12538 Q12709 Q228
(Q5705,P47,c(Q15617994))
action count
action filter_type
action find
entity Q5705
relation P47
type Q15617994
[ANSWER]
['Q5705', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q5705 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
France Haute-Garonne Pyrénées-Orientales Andorra
4
action count
action filter_type
action find
entity Catalonia
relation shares border with
type designation for an administrative territorial entity
['Catalonia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Catalonia property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q42926
P47
Q15617994
USER
And what about Calolziocorte?
(Q42926,P47,c(Q15617994))
action count
action filter_type
action find
entity Q42926
relation P47
type Q15617994
['Q42926', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { resource:Q42926 property:P47 ?d . ?d rdf:type ontology:Q15617994 }
Calolziocorte
action count
action filter_type
action find
entity Calolziocorte
relation shares border with
type designation for an administrative territorial entity
['Calolziocorte', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { resource:Calolziocorte property:shares_border_with ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
7
Q42626 Q42839 Q42748 Q42531 Q42439 Q42803 Q42819
(Q42926,P47,c(Q15617994))
action count
action filter_type
action find
entity Q42926
relation P47
type Q15617994
[ANSWER]
['Q42926', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { resource:Q42926 property:P47 ?d . ?d rdf:type ontology:Q15617994 }
Vercurago Brivio Torre de' Busi Monte Marenzo Carenno Olginate Erve
7
action count
action filter_type
action find
entity Calolziocorte
relation shares border with
type designation for an administrative territorial entity
['Calolziocorte', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { resource:Calolziocorte property:shares_border_with ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q82873
Q15617994
USER
And also tell me about Tavarnelle Val di Pesa?
(Q82873,P47,c(Q15617994))
action count
action filter_type
action find
entity Q82873
relation P47
type Q15617994
['Q82873', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Q82873 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
Tavarnelle Val di Pesa
action count
action filter_type
action find
entity Tavarnelle Val di Pesa
relation shares border with
type designation for an administrative territorial entity
['Tavarnelle Val di Pesa', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Tavarnelle_Val_di_Pesa property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
6
(Q82873,P47,c(Q15617994))
action count
action filter_type
action find
entity Q82873
relation P47
type Q15617994
[ANSWER]
['Q82873', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Q82873 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
6
action count
action filter_type
action find
entity Tavarnelle Val di Pesa
relation shares border with
type designation for an administrative territorial entity
['Tavarnelle Val di Pesa', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Tavarnelle_Val_di_Pesa property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1607830 Q3188931
P20
Q56061
USER
Which administrative territories are the places of death of Jules-Romain Tardieu or Sid Kimpton ?
OR((Q3188931,P20,c(Q56061)), (Q1607830,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3188931
relation P20
action find
entity Q1607830
relation P20
type Q56061
{'OR': [['Q3188931', 'P20', {'concept': 'Q56061'}], ['Q1607830', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3188931 property:P20 ?y } UNION { resource:Q1607830 property:P20 ?y } } . ?y rdf:type ontology:Q56061 }
Sid Kimpton Jules-Romain Tardieu
action filter_type
action union
action find
entity Jules-Romain Tardieu
relation place of death
action find
entity Sid Kimpton
relation place of death
type administrative territorial entity
{'OR': [['Jules-Romain Tardieu', 'place of death', {'concept': 'administrative territorial entity'}], ['Sid Kimpton', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Jules-Romain_Tardieu property:place_of_death ?y } UNION { resource:Sid_Kimpton property:place_of_death ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90 Q13129526
SYSTEM
Paris, Leavesden
Q90 Q13129526
OR((Q3188931,P20,c(Q56061)), (Q1607830,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3188931
relation P20
action find
entity Q1607830
relation P20
type Q56061
[ANSWERS] are the places of death of Jules-Romain Tardieu or Sid Kimpton
{'OR': [['Q3188931', 'P20', {'concept': 'Q56061'}], ['Q1607830', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3188931 property:P20 ?y } UNION { resource:Q1607830 property:P20 ?y } } . ?y rdf:type ontology:Q56061 }
Paris Leavesden
Paris and Leavesden are the places of death of Jules-Romain Tardieu or Sid Kimpton
Paris Leavesden
action filter_type
action union
action find
entity Jules-Romain Tardieu
relation place of death
action find
entity Sid Kimpton
relation place of death
type administrative territorial entity
{'OR': [['Jules-Romain Tardieu', 'place of death', {'concept': 'administrative territorial entity'}], ['Sid Kimpton', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Jules-Romain_Tardieu property:place_of_death ?y } UNION { resource:Sid_Kimpton property:place_of_death ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]