Simple Question (Direct)
Simple Question
Q1063363
P47
Q20667921
USER
Who share the border with Fierville-les-Mines ?
(Q1063363,P47,c(Q20667921))
action filter_type
action find
entity Q1063363
relation P47
type Q20667921
['Q1063363', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { resource:Q1063363 property:P47 ?u . ?u rdf:type ontology:Q20667921 }
Fierville-les-Mines
action filter_type
action find
entity Fierville-les-Mines
relation shares border with
type type of french administrative division
['Fierville-les-Mines', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { resource:Fierville-les-Mines property:shares_border_with ?u . ?u rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q630364 Q1062136 Q547775
SYSTEM
Portbail, Saint-Jacques-de-Néhou, Besneville
Q547775 Q630364 Q1062136 Q1061738 Q635428 Q1063187 Q1061036
(Q1063363,P47,c(Q20667921))
action filter_type
action find
entity Q1063363
relation P47
type Q20667921
[ANSWERS] share the border with Fierville-les-Mines
['Q1063363', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { resource:Q1063363 property:P47 ?u . ?u rdf:type ontology:Q20667921 }
Besneville Portbail Saint-Jacques-de-Néhou Saint-Pierre-d'Arthéglise Saint-Maurice-en-Cotentin Le Mesnil Le Valdécie
Portbail, Saint-Jacques-de-Néhou and Besneville share the border with Fierville-les-Mines
Portbail Saint-Jacques-de-Néhou Besneville
action filter_type
action find
entity Fierville-les-Mines
relation shares border with
type type of french administrative division
['Fierville-les-Mines', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { resource:Fierville-les-Mines property:shares_border_with ?u . ?u rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1062136
P17
Q15617994
USER
Which administrative territory is that french administrative division located in ?
(Q1062136,P17,c(Q15617994))
action filter_type
action find
entity Q1062136
relation P17
type Q15617994
['Q1062136', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1062136 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Saint-Jacques-de-Néhou
action filter_type
action find
entity Saint-Jacques-de-Néhou
relation country
type designation for an administrative territorial entity
['Saint-Jacques-de-Néhou', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Saint-Jacques-de-Néhou property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q547775
SYSTEM
Did you mean Besneville ?
Q630364 Q1062136 Q547775
(Q630364,P17,c(Q15617994)) (Q1062136,P17,c(Q15617994)) (Q547775,P17,c(Q15617994))
[ANSWER]
['Q630364', 'P17', {'concept': 'Q15617994'}] ['Q1062136', 'P17', {'concept': 'Q15617994'}] ['Q547775', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1062136 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Portbail Saint-Jacques-de-Néhou Besneville
Did you mean Besneville ?
Besneville
['Portbail', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Saint-Jacques-de-Néhou', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Besneville', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Saint-Jacques-de-Néhou property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Saint-Jacques-de-Néhou. Could you tell me the answer for that?
(Q1062136,P17,c(Q15617994))
Q1062136
['Q1062136', 'P17', {'concept': 'Q15617994'}]
['Saint-Jacques-de-Néhou', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q1062136,P17,c(Q15617994))
action filter_type
action find
entity Q1062136
relation P17
type Q15617994
That french administrative division is located in [ANSWER]
['Q1062136', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1062136 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
France
That french administrative division is located in France
France
action filter_type
action find
entity Saint-Jacques-de-Néhou
relation country
type designation for an administrative territorial entity
['Saint-Jacques-de-Néhou', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Saint-Jacques-de-Néhou property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q142 Q684066
P463
Q484652
USER
Was that administrative territory a member of Euro-Latin American Parliamentary Assembly ?
(Q142,P463,Q684066)
action is_in
entity Q684066
action find
entity Q142
relation P463
['Q142', 'P463', 'Q684066']
ASK WHERE { resource:Q142 property:P463 resource:Q684066 }
France Euro-Latin American Parliamentary Assembly
action is_in
entity Euro-Latin American Parliamentary Assembly
action find
entity France
relation member of
['France', 'member of', 'Euro-Latin American Parliamentary Assembly']
ASK WHERE { resource:France property:member_of resource:Euro-Latin_American_Parliamentary_Assembly }
[]
international organization
SYSTEM
NO
(Q142,P463,Q684066)
action is_in
entity Q684066
action find
entity Q142
relation P463
[ANSWER]
['Q142', 'P463', 'Q684066']
ASK WHERE { resource:Q142 property:P463 resource:Q684066 }
No
action is_in
entity Euro-Latin American Parliamentary Assembly
action find
entity France
relation member of
['France', 'member of', 'Euro-Latin American Parliamentary Assembly']
ASK WHERE { resource:France property:member_of resource:Euro-Latin_American_Parliamentary_Assembly }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q36
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with around the same number of administrative territories as Poland ?
(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 Q36
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?m = ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q36 property:P530 ?e } } }
Poland
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 Poland
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 ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?m = ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Poland property:diplomatic_relation ?e } } }
[]
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 Q36
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?m = ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q36 property:P530 ?e } } }
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 Poland
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 ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?m = ?x ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Poland property:diplomatic_relation ?e } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q96
P530
Q15617994 Q15617994
USER
And also tell me about Mexico?
(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 Q96
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q96 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?k ) }
Mexico
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 Mexico
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 ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Mexico property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
154
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 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 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 Q96
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q96 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?k ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain 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 Togo Tonga Spain New Caledonia Thailand Zambia
154
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 Mexico
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 ( ?r ) AS ?c ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Mexico property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q837748
P138
Q20667921 Q22698 Q62447
USER
How many french administrative divisions are the origin of less number of parks or aerodromes than Brétigny-sur-Orge ?
(c(Q22698)|c(Q62447),P138,c(Q20667921))
action count
action less
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q22698
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q62447
action count
action filter_multi_types
action find_reverse
entity Q837748
relation P138
type Q22698
type Q62447
[[{'concept': 'Q22698'}, {'concept': 'Q62447'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q22698 } UNION { ?l property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q62447 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P138 resource:Q837748 . { { ?u rdf:type ontology:Q22698 } UNION { ?u rdf:type ontology:Q62447 } } } } . FILTER ( ?q < ?h ) }
Brétigny-sur-Orge
action count
action less
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type park
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type aerodrome
action count
action filter_multi_types
action find_reverse
entity Brétigny-sur-Orge
relation named after
type park
type aerodrome
[[{'concept': 'park'}, {'concept': 'aerodrome'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:park } UNION { ?l property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:aerodrome } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:named_after resource:Brétigny-sur-Orge . { { ?u rdf:type ontology:park } UNION { ?u rdf:type ontology:aerodrome } } } } . FILTER ( ?q < ?h ) }
[]
type of french administrative division park aerodrome
SYSTEM
266
Q205551 Q3769 Q521432 Q201352 Q901416 Q253721 Q456477 Q132801 Q191119 Q1172337 Q236579 Q1075237 Q321067 Q840218 Q326687 Q181946 Q160199 Q817418 Q842942 Q183910 Q626987 Q633254 Q190974 Q196360 Q180871 Q679894 Q166997 Q1440905 Q269364 Q2426877 Q138648 Q1391563 Q212793 Q2961727 Q6454 Q48958 Q208812 Q9155 Q208943 Q3241770 Q160506 Q193880 Q167152 Q840597 Q329664 Q209069 Q273702 Q181285 Q126668 Q59221 Q903665 Q7158 Q616668 Q264778 Q174032 Q229339 Q135265 Q208889 Q212274 Q161884 Q274327 Q28520 Q46135 Q205116 Q1476 Q154715 Q193899 Q30974 Q182744 Q459683 Q205632 Q623376 Q130994 Q217077 Q809414 Q213317 Q1073264 Q501933 Q694818 Q212987 Q474524 Q22640 Q181886 Q187796 Q193819 Q234270 Q238377 Q762471 Q234274 Q591741 Q729239 Q243866 Q474503 Q251731 Q126675 Q149419 Q1463559 Q201982 Q134674 Q474555 Q636299 Q605656 Q174257 Q471685 Q154724 Q165271 Q163108 Q211604 Q154728 Q12193 Q142410 Q207632 Q476887 Q22739 Q189153 Q22636 Q209086 Q195098 Q18199435 Q625570 Q569751 Q209005 Q181269 Q736370 Q1111541 Q203645 Q16532200 Q241021 Q208793 Q387460 Q1080717 Q285 Q648164 Q567956 Q204051 Q193877 Q781078 Q202565 Q784536 Q1105062 Q468229 Q174247 Q900479 Q185721 Q1066223 Q1165029 Q148787 Q45797 Q163795 Q530593 Q463304 Q44401 Q212966 Q34001 Q213288 Q470959 Q47465 Q14112 Q845975 Q689491 Q688262 Q404783 Q16121 Q22160 Q478105 Q238339 Q271649 Q70285 Q23047 Q989788 Q1100414 Q154748 Q840164 Q134346 Q165090 Q202378 Q6588 Q212959 Q541007 Q968881 Q18199186 Q822303 Q474773 Q666180 Q12130 Q13103683 Q453492 Q208798 Q22690 Q22380 Q207570 Q22754 Q42807 Q22756 Q208794 Q317975 Q233909 Q79815 Q177573 Q206493 Q1217220 Q188750 Q241940 Q18102 Q3413275 Q128466 Q370224 Q288 Q171545 Q204979 Q167141 Q193903 Q131329 Q256175 Q216966 Q917770 Q3413171 Q532352 Q83432 Q279681 Q372111 Q1014746 Q6548 Q175999 Q199682 Q266958 Q6397 Q325946 Q6544 Q316891 Q3413267 Q1348608 Q498869 Q40898 Q192548 Q93351 Q1047171 Q256004 Q1440685 Q272528 Q41139 Q191126 Q471902 Q3555080 Q399366 Q461413 Q947091 Q207620 Q467132 Q135104 Q1056120 Q181306 Q3413163 Q475599 Q845191 Q130272 Q221683 Q990774 Q6616 Q182872 Q331232 Q1110622 Q273917 Q20892 Q193826 Q832386
(c(Q22698)|c(Q62447),P138,c(Q20667921))
action count
action less
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q22698
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q62447
action count
action filter_multi_types
action find_reverse
entity Q837748
relation P138
type Q22698
type Q62447
[ANSWER]
[[{'concept': 'Q22698'}, {'concept': 'Q62447'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q22698 } UNION { ?l property:P138 ?i . ?i rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q62447 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P138 resource:Q837748 . { { ?u rdf:type ontology:Q22698 } UNION { ?u rdf:type ontology:Q62447 } } } } . FILTER ( ?q < ?h ) }
Mérignac French Guiana Saint-Marcellin Pontoise Lacaune Malakoff Chooz Albi Rambouillet Morogues Semur-en-Auxois Bailleau-Armenonville Nemours Barrême Banon Argenteuil Cherbourg-Octeville Joinville Bonneville-la-Louvet Bayeux Herment Morbier Oradour-sur-Glane Aisy-sur-Armançon Compiègne Aurignac Nevers Ramonville-Saint-Agne Joué-lès-Tours Épinettes Maubeuge Coulmiers Charenton-le-Pont Chavignol Calais Neuilly-sur-Seine Corbeil-Essonnes Lagny-sur-Marne Bagnolet Lion Saint-Denis Chaumont Soissons Le Croisic Le Creusot Domrémy-la-Pucelle Rocroi Cambrai Senlis Vaucouleurs Liverdun Oms Pouligny-Saint-Pierre Loudes Crozant Champigneulles Issy-les-Moulineaux Saint-Ouen Nogent-sur-Marne Bagneux Saint-Maurice Abbeville Créteil Amboise Le Mans Montbéliard Fontenay-sous-Bois Rouen Saint-Quentin Sancerre Aubervilliers Volvic Colmar Camembert Thiézac Ambert Civry Taizé Sassenage Choisy-le-Roi Sainte-Maure-de-Touraine Thionville Châteaudun Orange Vincennes Montélimar Pont-Aven Ver-sur-Mer Manosque Goutte-d'Or Vimoutiers Olivet Valençay Coulommiers Chantilly Munster Villette Clichy Bayonne Castelnau-le-Lez Le Pradet Gèdre Beauvais Rambervillers Bobigny Lens Saint-Malo Montparnasse Toul Brest Dreux Apt Roquefort-sur-Soulzon Hettange-Grande Saint-Cloud Wissembourg Pantin Frouard Charonne Langeac Termignon Cachan Alençon Bonneval-sur-Arc Costaros Chalon-sur-Saône Bercy Montrouge Saint-Omer Sainte-Foy-lès-Lyon Champagne Cognac Antrain Isigny-sur-Mer Bonifacio Ivry-sur-Seine Euville Coutances Auteuil Wattignies-la-Victoire Corneville-sur-Risle Mâcon Noisiel Bar-le-Duc Andrézieux-Bouthéon Le Pouliguen Ottmarsheim Dunkirk Valenciennes Chaource Fontaine-de-Vaucluse Cayenne Pompey Roubaix Montbrison Voves Aix-en-Provence Corsica Caussols Tautavel Champaubert Aiguillon Beaune Phalsbourg Rungis Azincourt Marcq-en-Barœul Étel Cahors Villersexel Taisnières-sur-Hon Verdun La Cadière-d'Azur Angoulême Chambéry Ouessant Périgueux Denain Le Malzieu-Ville Ternes Grenelle Saint-Nectaire Roquebrune-sur-Argens Maroilles Brittany La Chapelle Matignon Cavaillon Metz Créhange Thann Bitche Nîmes Spicheren Lunéville Châtelperron Alfortville Mulhouse Bagnoles Sèvres Laqueuille Saint-Estèphe Givet Saint-Mandé Gros-Caillou Villejuif Noisy-le-Sec Tours Belfort Vézelay Laon Cergy Arras Barbizon Uzès Solutré-Pouilly Picpus La Villette Viroflay Thouars Romainville Cilaos Orléans Le Pré-Saint-Gervais Floirac Rolleboise Avignon Landerneau Libourne Montmorency Bel-Air Varize Brienne-le-Château Nancy Saint-Émilion Vichy Balma Les Lilas Belleville Pauillac Melun Saintes Salles Vaugirard Chevreuse Pont-à-Mousson Romanèche-Thorins Meaux Arcueil Le Kremlin-Bicêtre Décines-Charpieu Digne-les-Bains Clignancourt Gien Javel Chartres Audierne Laguiole Poitiers Fontainebleau Chablis La Bouille Berrias-et-Casteljau Le Mont-Saint-Michel Douai Selles-sur-Cher
266
action count
action less
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type park
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type aerodrome
action count
action filter_multi_types
action find_reverse
entity Brétigny-sur-Orge
relation named after
type park
type aerodrome
[[{'concept': 'park'}, {'concept': 'aerodrome'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:park } UNION { ?l property:named_after ?i . ?i rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:aerodrome } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:named_after resource:Brétigny-sur-Orge . { { ?u rdf:type ontology:park } UNION { ?u rdf:type ontology:aerodrome } } } } . FILTER ( ?q < ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P1071
Q2235308 Q3305213
USER
How many ship types and paintings have France as their final place of assembly ?
(c(Q2235308),P1071,Q142) (c(Q3305213),P1071,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P1071
type Q2235308
action filter_type
action find_reverse
entity Q142
relation P1071
type Q3305213
[{'concept': 'Q2235308'}, 'P1071', 'Q142'] [{'concept': 'Q3305213'}, 'P1071', 'Q142']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?g ) { ( ontology:Q2235308 ) ( ontology:Q3305213 ) } . ?s rdf:type ?g }
France
action count
action union
action filter_type
action find_reverse
entity France
relation location of final assembly
type ship type
action filter_type
action find_reverse
entity France
relation location of final assembly
type painting
[{'concept': 'ship type'}, 'location of final assembly', 'France'] [{'concept': 'painting'}, 'location of final assembly', 'France']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?g ) { ( ontology:ship_type ) ( ontology:painting ) } . ?s rdf:type ?g }
[]
ship type painting
SYSTEM
1 ship types and 3 paintings
Q18591537 Q18343261 Q21012673 Q18591430
(c(Q2235308),P1071,Q142) (c(Q3305213),P1071,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P1071
type Q2235308
action filter_type
action find_reverse
entity Q142
relation P1071
type Q3305213
[ANSWER]
[{'concept': 'Q2235308'}, 'P1071', 'Q142'] [{'concept': 'Q3305213'}, 'P1071', 'Q142']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?g ) { ( ontology:Q2235308 ) ( ontology:Q3305213 ) } . ?s rdf:type ?g }
View of Catanzaro (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non) Homme en Grande Bottes Napoléon View Near Manfredonia (from “Voyage Pittoresque, ou Description des royaumes de Naples et de Sicile” by Jean-Claude Richard Abbé de Saint Non)
1 ship types and 3 paintings
action count
action union
action filter_type
action find_reverse
entity France
relation location of final assembly
type ship type
action filter_type
action find_reverse
entity France
relation location of final assembly
type painting
[{'concept': 'ship type'}, 'location of final assembly', 'France'] [{'concept': 'painting'}, 'location of final assembly', 'France']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?g ) { ( ontology:ship_type ) ( ontology:painting ) } . ?s rdf:type ?g }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q1428
P463
Q43229
USER
How many organizations were France and Georgia a member of ?
(Q142,P463,c(Q43229)) (Q1428,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q142
relation P463
type Q43229
action filter_type
action find
entity Q1428
relation P463
type Q43229
['Q142', 'P463', {'concept': 'Q43229'}] ['Q1428', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:Q142 property:P463 ?v . ?v rdf:type ontology:Q43229 . resource:Q1428 property:P463 ?v . ?v rdf:type ontology:Q43229 }
France Georgia
action count
action intersection
action filter_type
action find
entity France
relation member of
type organization
action filter_type
action find
entity Georgia
relation member of
type organization
['France', 'member of', {'concept': 'organization'}] ['Georgia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:France property:member_of ?v . ?v rdf:type ontology:organization . resource:Georgia property:member_of ?v . ?v rdf:type ontology:organization }
[]
organization
SYSTEM
4
Q191384 Q899770 Q656801 Q827525
(Q142,P463,c(Q43229)) (Q1428,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q142
relation P463
type Q43229
action filter_type
action find
entity Q1428
relation P463
type Q43229
[ANSWER]
['Q142', 'P463', {'concept': 'Q43229'}] ['Q1428', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:Q142 property:P463 ?v . ?v rdf:type ontology:Q43229 . resource:Q1428 property:P463 ?v . ?v rdf:type ontology:Q43229 }
International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation International Development Association
4
action count
action intersection
action filter_type
action find
entity France
relation member of
type organization
action filter_type
action find
entity Georgia
relation member of
type organization
['France', 'member of', {'concept': 'organization'}] ['Georgia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:France property:member_of ?v . ?v rdf:type ontology:organization . resource:Georgia property:member_of ?v . ?v rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q630364
P190
Q15617994
USER
Which administrative territory is partner town of Portbail ?
(Q630364,P190,c(Q15617994))
action filter_type
action find
entity Q630364
relation P190
type Q15617994
['Q630364', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q630364 property:P190 ?j . ?j rdf:type ontology:Q15617994 }
Portbail
action filter_type
action find
entity Portbail
relation sister city
type designation for an administrative territorial entity
['Portbail', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Portbail property:sister_city ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q566292
SYSTEM
Wienhausen
Q566292
(Q630364,P190,c(Q15617994))
action filter_type
action find
entity Q630364
relation P190
type Q15617994
[ANSWER] is partner town of Portbail
['Q630364', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q630364 property:P190 ?j . ?j rdf:type ontology:Q15617994 }
Wienhausen
Wienhausen is partner town of Portbail
Wienhausen
action filter_type
action find
entity Portbail
relation sister city
type designation for an administrative territorial entity
['Portbail', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Portbail property:sister_city ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q228445
Q15617994
USER
And also tell me about Zugló?
(Q228445,P190,c(Q15617994))
action filter_type
action find
entity Q228445
relation P190
type Q15617994
['Q228445', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q228445 property:P190 ?e . ?e rdf:type ontology:Q15617994 }
Zugló
action filter_type
action find
entity Zugló
relation sister city
type designation for an administrative territorial entity
['Zugló', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Zugló property:sister_city ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q158064
SYSTEM
Steglitz-Zehlendorf
Q158064
(Q228445,P190,c(Q15617994))
action filter_type
action find
entity Q228445
relation P190
type Q15617994
[ANSWER]
['Q228445', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q228445 property:P190 ?e . ?e rdf:type ontology:Q15617994 }
Steglitz-Zehlendorf
Steglitz-Zehlendorf
action filter_type
action find
entity Zugló
relation sister city
type designation for an administrative territorial entity
['Zugló', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Zugló property:sister_city ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q158064 Q54356
P190
Q13220204
USER
How many administrative country subdivisions are twin city of Steglitz-Zehlendorf or Nyköping ?
(c(Q13220204),P190,Q158064) (c(Q13220204),P190,Q54356)
action count
action union
action filter_type
action find_reverse
entity Q158064
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q54356
relation P190
type Q13220204
[{'concept': 'Q13220204'}, 'P190', 'Q158064'] [{'concept': 'Q13220204'}, 'P190', 'Q54356']
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { ?v property:P190 resource:Q158064 . ?v rdf:type ontology:Q13220204 } UNION { ?v property:P190 resource:Q54356 . ?v rdf:type ontology:Q13220204 } }
Steglitz-Zehlendorf Nyköping
action count
action union
action filter_type
action find_reverse
entity Steglitz-Zehlendorf
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Nyköping
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Steglitz-Zehlendorf'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Nyköping']
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { ?v property:sister_city resource:Steglitz-Zehlendorf . ?v rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?v property:sister_city resource:Nyköping . ?v rdf:type ontology:second-level_administrative_country_subdivision } }
[]
second-level administrative country subdivision
SYSTEM
2
Q2326 Q659665
(c(Q13220204),P190,Q158064) (c(Q13220204),P190,Q54356)
action count
action union
action filter_type
action find_reverse
entity Q158064
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q54356
relation P190
type Q13220204
[ANSWER]
[{'concept': 'Q13220204'}, 'P190', 'Q158064'] [{'concept': 'Q13220204'}, 'P190', 'Q54356']
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { ?v property:P190 resource:Q158064 . ?v rdf:type ontology:Q13220204 } UNION { ?v property:P190 resource:Q54356 . ?v rdf:type ontology:Q13220204 } }
Notodden Salacgrīva
2
action count
action union
action filter_type
action find_reverse
entity Steglitz-Zehlendorf
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Nyköping
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Steglitz-Zehlendorf'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Nyköping']
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { ?v property:sister_city resource:Steglitz-Zehlendorf . ?v rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?v property:sister_city resource:Nyköping . ?v rdf:type ontology:second-level_administrative_country_subdivision } }
[]