Simple Question (Direct)
Simple Question
Q632075
P47
Q20667921
USER
Which french administrative divisions have a shared border with Ribeaucourt ?
(Q632075,P47,c(Q20667921))
action filter_type
action find
entity Q632075
relation P47
type Q20667921
['Q632075', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q632075 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Ribeaucourt
action filter_type
action find
entity Ribeaucourt
relation shares border with
type type of french administrative division
['Ribeaucourt', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Ribeaucourt property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q962896 Q69050 Q1092077
SYSTEM
Bernaville, Domart-en-Ponthieu, Beaumetz
Q144176 Q1092077 Q142374 Q962896 Q69038 Q1156963 Q69050
(Q632075,P47,c(Q20667921))
action filter_type
action find
entity Q632075
relation P47
type Q20667921
[ANSWERS] have a shared border with Ribeaucourt
['Q632075', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q632075 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Franqueville Beaumetz Fransu Bernaville Domesmont Lanches-Saint-Hilaire Domart-en-Ponthieu
Bernaville, Domart-en-Ponthieu and Beaumetz have a shared border with Ribeaucourt
Bernaville Domart-en-Ponthieu Beaumetz
action filter_type
action find
entity Ribeaucourt
relation shares border with
type type of french administrative division
['Ribeaucourt', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Ribeaucourt property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q962896 Q69050 Q1092077
P47
Q20667921
USER
Which french administrative divisions share border with those ones ?
(c(Q20667921),P47,Q962896) (c(Q20667921),P47,Q69050) (c(Q20667921),P47,Q1092077)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q962896'] [{'concept': 'Q20667921'}, 'P47', 'Q69050'] [{'concept': 'Q20667921'}, 'P47', 'Q1092077']
SELECT DISTINCT ?x WHERE { ?i property:P47 ?x . ?x rdf:type ontology:Q20667921 . VALUES ( ?i ) { ( resource:Q144176 ) ( resource:Q1092077 ) ( resource:Q142374 ) } }
Bernaville Domart-en-Ponthieu Beaumetz
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Bernaville'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Domart-en-Ponthieu'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Beaumetz']
SELECT DISTINCT ?x WHERE { ?i property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division . VALUES ( ?i ) { ( resource:Franqueville ) ( resource:Beaumetz ) ( resource:Fransu ) } }
[]
type of french administrative division
Q962896 Q673948 Q673948
SYSTEM
Bernaville for 1st, Prouville for 2nd, 3rd
Q1105261 Q673948 Q45657 Q1092077 Q69038 Q397344 Q157340 Q632075 Q82062 Q121053 Q645359 Q157633 Q1156963 Q1090120 Q144176 Q795409 Q632075 Q1217365 Q673948 Q142374 Q69083 Q962896 Q632075 Q380601
(c(Q20667921),P47,Q962896) (c(Q20667921),P47,Q69050) (c(Q20667921),P47,Q1092077)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[ANSWERS]
[{'concept': 'Q20667921'}, 'P47', 'Q962896'] [{'concept': 'Q20667921'}, 'P47', 'Q69050'] [{'concept': 'Q20667921'}, 'P47', 'Q1092077']
SELECT DISTINCT ?x WHERE { ?i property:P47 ?x . ?x rdf:type ontology:Q20667921 . VALUES ( ?i ) { ( resource:Q144176 ) ( resource:Q1092077 ) ( resource:Q142374 ) } }
Heuzecourt Prouville Autheux Beaumetz Domesmont Le Meillard Gorges Ribeaucourt Épécamps Fienvillers Boisbergues Gorenflos Lanches-Saint-Hilaire Berneuil Franqueville Surcamps Ribeaucourt Saint-Léger-lès-Domart Prouville Fransu Domléger-Longvillers Bernaville Ribeaucourt Mesnil-Domqueur
Bernaville, Prouville and Prouville share border with those ones
Bernaville Prouville Prouville
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Bernaville'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Domart-en-Ponthieu'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Beaumetz']
SELECT DISTINCT ?x WHERE { ?i property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division . VALUES ( ?i ) { ( resource:Franqueville ) ( resource:Beaumetz ) ( resource:Fransu ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q632075
P17
Q15617994
USER
Which administrative territory does Ribeaucourt belong to ?
(Q632075,P17,c(Q15617994))
action filter_type
action find
entity Q632075
relation P17
type Q15617994
['Q632075', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q632075 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Ribeaucourt
action filter_type
action find
entity Ribeaucourt
relation country
type designation for an administrative territorial entity
['Ribeaucourt', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ribeaucourt property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q632075,P17,c(Q15617994))
action filter_type
action find
entity Q632075
relation P17
type Q15617994
Ribeaucourt belongs to [ANSWER]
['Q632075', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q632075 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
France
Ribeaucourt belongs to France
France
action filter_type
action find
entity Ribeaucourt
relation country
type designation for an administrative territorial entity
['Ribeaucourt', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ribeaucourt property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6751611
Q15617994
USER
And also tell me about Mansfield, Kansas?
(Q6751611,P17,c(Q15617994))
action filter_type
action find
entity Q6751611
relation P17
type Q15617994
['Q6751611', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q6751611 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
Mansfield, Kansas
action filter_type
action find
entity Mansfield, Kansas
relation country
type designation for an administrative territorial entity
['Mansfield, Kansas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Mansfield,_Kansas property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6751611,P17,c(Q15617994))
action filter_type
action find
entity Q6751611
relation P17
type Q15617994
[ANSWER]
['Q6751611', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q6751611 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Mansfield, Kansas
relation country
type designation for an administrative territorial entity
['Mansfield, Kansas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Mansfield,_Kansas property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q142
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with France ?
(Q142,P530,c(Q15617994))
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q142 property:P530 ?r . ?r rdf:type ontology:Q15617994 }
France
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:France property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
15
Q711 Q159 Q222 Q801 Q145 Q155 Q1011 Q228 Q32 Q17 Q30 Q399 Q27 Q403 Q38
(Q142,P530,c(Q15617994))
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[ANSWER]
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q142 property:P530 ?r . ?r rdf:type ontology:Q15617994 }
Mongolia Russia Albania Israel United Kingdom Brazil Cape Verde Andorra Luxembourg Japan United States of America Armenia Ireland Serbia Italy
15
action count
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:France property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q230
P530
Q15617994
USER
And also tell me about Georgia?
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q230 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
Georgia
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Georgia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
80
Q805 Q801 Q800 Q668 Q414 Q145 Q262 Q784 Q786 Q710 Q252 Q399 Q398 Q43 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q986 Q822 Q241 Q424 Q921 Q31 Q30 Q37 Q38 Q739 Q423 Q983 Q851 Q734 Q1011 Q736 Q27 Q29 Q819 Q189 Q184 Q32 Q347 Q227 Q225 Q222 Q229 Q228 Q17 Q902 Q1008 Q191 Q965 Q967 Q963 Q115 Q114 Q117 Q750 Q211 Q219 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q970 Q686 Q874 Q79 Q878 Q774 Q810 Q1016 Q1013 Q953
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
[ANSWER]
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q230 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
Yemen Israel Costa Rica India Argentina United Kingdom Algeria Dominica Dominican Republic Kiribati Indonesia Armenia Bahrain Turkey Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Eritrea Lebanon Cuba Cambodia Brunei Belgium United States of America Lithuania Italy Colombia North Korea Equatorial Guinea Saudi Arabia Guyana Cape Verde Ecuador Ireland Spain Laos Iceland Belarus Luxembourg Liechtenstein Azerbaijan Bosnia and Herzegovina Albania Cyprus Andorra Japan Bangladesh Côte d'Ivoire Estonia Burkina Faso Burundi Botswana Ethiopia Kenya Ghana Bolivia Latvia Bulgaria Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Comoros Vanuatu Turkmenistan Egypt United Arab Emirates Guatemala Jordan Libya Lesotho Zambia
80
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Georgia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q711
Q15617994
USER
And also tell me about Mongolia?
(Q711,P530,c(Q15617994))
action count
action filter_type
action find
entity Q711
relation P530
type Q15617994
['Q711', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Q711 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
Mongolia
action count
action filter_type
action find
entity Mongolia
relation diplomatic relation
type designation for an administrative territorial entity
['Mongolia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Mongolia property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
5
(Q711,P530,c(Q15617994))
action count
action filter_type
action find
entity Q711
relation P530
type Q15617994
[ANSWER]
['Q711', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Q711 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
5
action count
action filter_type
action find
entity Mongolia
relation diplomatic relation
type designation for an administrative territorial entity
['Mongolia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Mongolia property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q889
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with more number of administrative territories than Afghanistan ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q889
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?k ) WHERE { ?a rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?a property:P530 ?e } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Q889 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?i ) }
Afghanistan
action count
action greater
action find_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 Afghanistan
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 ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?k ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?e } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Afghanistan property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
34
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q822 Q241 Q31 Q30 Q38 Q27 Q222 Q347 Q17 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q889
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?k ) WHERE { ?a rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?a property:P530 ?e } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Q889 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?i ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Lebanon Cuba Belgium United States of America Italy Ireland Albania Liechtenstein Japan Czech Republic Angola Egypt Libya Cape Verde Zambia
34
action count
action greater
action find_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 Afghanistan
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 ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?k ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?e } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { resource:Afghanistan property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1006
P530
Q15617994 Q15617994
USER
And how about Guinea?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:Q1006 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?z ) }
Guinea
action count
action greater
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 Guinea
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 ( ?t ) AS ?o ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:Guinea property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?z ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
102
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:Q1006 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?z ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
102
action count
action greater
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 Guinea
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 ( ?t ) AS ?o ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?k ) WHERE { ?v property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { resource:Guinea property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?z ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q356204 Q962896
P17
Q15617994
USER
Which administrative territories are Bernaville or Panay situated in ?
OR((Q962896,P17,c(Q15617994)), (Q356204,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q962896
relation P17
action find
entity Q356204
relation P17
type Q15617994
{'OR': [['Q962896', 'P17', {'concept': 'Q15617994'}], ['Q356204', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q356204 property:P17 ?o } UNION { resource:Q962896 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Panay Bernaville
action filter_type
action union
action find
entity Bernaville
relation country
action find
entity Panay
relation country
type designation for an administrative territorial entity
{'OR': [['Bernaville', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Panay', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Panay property:country ?o } UNION { resource:Bernaville property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q928
SYSTEM
France, Philippines
Q142 Q928
OR((Q962896,P17,c(Q15617994)), (Q356204,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q962896
relation P17
action find
entity Q356204
relation P17
type Q15617994
Bernaville or Panay are situated in [ANSWERS]
{'OR': [['Q962896', 'P17', {'concept': 'Q15617994'}], ['Q356204', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q356204 property:P17 ?o } UNION { resource:Q962896 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
France Philippines
Bernaville or Panay are situated in France and Philippines
France Philippines
action filter_type
action union
action find
entity Bernaville
relation country
action find
entity Panay
relation country
type designation for an administrative territorial entity
{'OR': [['Bernaville', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Panay', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Panay property:country ?o } UNION { resource:Bernaville property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with greater number of administrative territories than Grenada ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?w ) WHERE { ?z property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?m ) }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?w ) WHERE { ?z property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?m ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?w ) WHERE { ?z property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?m ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?w ) WHERE { ?z property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q781
P530
Q15617994 Q1048835
USER
And also tell me about Antigua and Barbuda?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q781 property:P530 ?v } } . FILTER ( ?e > ?y ) . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?e ) WHERE { ?h rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?h property:P530 ?d } GROUP BY ?h } }
Antigua and Barbuda
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?v } } . FILTER ( ?e > ?y ) . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?e ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?d } GROUP BY ?h } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q781 property:P530 ?v } } . FILTER ( ?e > ?y ) . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?e ) WHERE { ?h rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?h property:P530 ?d } GROUP BY ?h } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?v } } . FILTER ( ?e > ?y ) . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?e ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?d } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1469245
P159
Q20667921 Q4830453 Q874405
USER
Which french administrative divisions are the head office for less number of business enterprises and social groups located than Ormes ?
(c(Q4830453)|c(Q874405),P159,c(Q20667921))
action less
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q1469245
relation P159
type Q4830453
type Q874405
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?c ) WHERE { { ?i rdf:type ontology:Q4830453 . ?u rdf:type ontology:Q20667921 . ?i property:P159 ?u } UNION { ?i property:P159 ?u . ?u rdf:type ontology:Q20667921 . ?i rdf:type ontology:Q874405 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P159 resource:Q1469245 . { { ?v rdf:type ontology:Q4830453 } UNION { ?v rdf:type ontology:Q874405 } } } } . FILTER ( ?c < ?r ) }
Ormes
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
action count
action filter_multi_types
action find_reverse
entity Ormes
relation headquarters location
type business enterprise
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?c ) WHERE { { ?i rdf:type ontology:business_enterprise . ?u rdf:type ontology:type_of_french_administrative_division . ?i property:headquarters_location ?u } UNION { ?i property:headquarters_location ?u . ?u rdf:type ontology:type_of_french_administrative_division . ?i rdf:type ontology:social_group } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:headquarters_location resource:Ormes . { { ?v rdf:type ontology:business_enterprise } UNION { ?v rdf:type ontology:social_group } } } } . FILTER ( ?c < ?r ) }
[]
type of french administrative division business enterprise social group
Q42716 Q234735 Q6730
SYSTEM
Saint-Étienne, Meudon, Perpignan
Q22438 Q205537 Q1047751 Q317433 Q1226504 Q1004486 Q182872 Q632276 Q22660 Q207605 Q216844 Q214600 Q212793 Q404445 Q363100 Q372882 Q615159 Q838334 Q22810 Q46712 Q1018637 Q274683 Q271068 Q256137 Q696996 Q316452 Q675232 Q337636 Q194002 Q9733 Q219383 Q636993 Q126675 Q659327 Q213555 Q134674 Q211121 Q269430 Q163108 Q21347 Q21346 Q1389275 Q194141 Q194145 Q1342783 Q6593 Q241575 Q960827 Q124126 Q578683 Q233733 Q429770 Q188750 Q383388 Q247627 Q1169872 Q816094 Q635643 Q658928 Q212274 Q668446 Q1111084 Q202374 Q234735 Q47135 Q491948 Q22697 Q22690 Q238429 Q819837 Q565982 Q369954 Q132671 Q477013 Q13947 Q1146338 Q386778 Q694905 Q220592 Q274774 Q474768 Q735931 Q274412 Q476687 Q185066 Q163795 Q184047 Q1066554 Q467132 Q457389 Q10235 Q107501 Q609134 Q117551 Q241064 Q171800 Q366383 Q1081604 Q1103338 Q630193 Q324027 Q727297 Q200832 Q20441 Q609047 Q334301 Q213285 Q174234 Q203529 Q132404 Q273017 Q794124 Q231554 Q6730 Q208943 Q239908 Q752150 Q1384871 Q174247 Q207614 Q1106922 Q161884 Q175081 Q242497 Q192481 Q240286 Q1008824 Q1064869 Q1602947 Q392169 Q265657 Q910089 Q244725 Q1323215 Q1615759 Q326520 Q760624 Q213515 Q549536 Q730148 Q323727 Q12193 Q828625 Q579807 Q372218 Q174019 Q205592 Q202565 Q243868 Q476895 Q191856 Q627252 Q37719 Q235382 Q243915 Q269952 Q1119799 Q225451 Q16121 Q22776 Q245297 Q211706 Q669021 Q134346 Q39984 Q212959 Q746946 Q239091 Q285 Q227795 Q269862 Q1067807 Q549750 Q460795 Q648073 Q239123 Q384516 Q268062 Q454445 Q46135 Q223692 Q1428824 Q240189 Q93351 Q1171684 Q268362 Q1078810 Q1144900 Q264637 Q193819 Q167024 Q291197 Q728517 Q526378 Q242536 Q1138493 Q1471382 Q160199 Q387447 Q237394 Q72248 Q841518 Q1069988 Q21298 Q193370 Q728033 Q675537 Q71724 Q271604 Q658561 Q21569 Q733833 Q818443 Q694800 Q194160 Q188658 Q81621 Q376986 Q1058168 Q1087218 Q632445 Q212987 Q22727 Q863563 Q264416 Q21511 Q463951 Q238310 Q1421965 Q331087 Q868513 Q958857 Q777493 Q174251 Q191765 Q189153 Q1423628 Q238366 Q963292 Q44160 Q382855 Q166997 Q332416 Q637695 Q8848 Q242569 Q368160 Q291094 Q724403 Q1166034 Q1110747 Q900479 Q763901 Q1066223 Q1026879 Q1467149 Q752053 Q272906 Q59724 Q183557 Q258059 Q81997 Q240798 Q1055925 Q851278 Q237303 Q208314 Q273748 Q338877 Q234728 Q128466 Q947069 Q997294 Q1067432 Q517466 Q1344726 Q1172798 Q21997 Q205580 Q382095 Q3581 Q193861 Q280296 Q41139 Q833394 Q1022934 Q399366 Q632969 Q328022 Q961186 Q664934 Q193826 Q655572 Q208866 Q253721 Q55905 Q279310 Q1063150 Q250106 Q245080 Q1069745 Q495474 Q1014814 Q22413 Q130800 Q626582 Q675950 Q184023 Q181955 Q605677 Q841345 Q852904 Q637279 Q791277 Q273897 Q817733 Q1094779 Q69990 Q271678 Q42716 Q1063932 Q783452 Q193895 Q180083 Q828253 Q632175 Q188776 Q21359 Q234274 Q207584 Q6588 Q474555 Q249884 Q243135 Q120161 Q193183 Q82185 Q636592 Q968116 Q70152 Q582299 Q184154 Q182287 Q13596 Q236058 Q22730 Q209005 Q239078 Q41185 Q269732 Q182481 Q2087041 Q240546 Q956943 Q1469416 Q45797 Q319933 Q44401 Q1047719 Q268281 Q1388467 Q220159 Q14112 Q264277 Q1157701 Q133824 Q28520 Q271407 Q1169745 Q473919 Q208851 Q231720 Q288 Q205116 Q83427 Q767320 Q912302 Q1103869 Q836443 Q658651 Q185075 Q6397 Q1651173 Q372281 Q62958 Q134698 Q372111 Q192982 Q6544 Q193256 Q769160 Q752466 Q193313 Q629891 Q5489 Q193903
(c(Q4830453)|c(Q874405),P159,c(Q20667921))
action less
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q1469245
relation P159
type Q4830453
type Q874405
[ANSWERS] are the head office for less number of business enterprises and social groups located than Ormes
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?c ) WHERE { { ?i rdf:type ontology:Q4830453 . ?u rdf:type ontology:Q20667921 . ?i property:P159 ?u } UNION { ?i property:P159 ?u . ?u rdf:type ontology:Q20667921 . ?i rdf:type ontology:Q874405 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P159 resource:Q1469245 . { { ?v rdf:type ontology:Q4830453 } UNION { ?v rdf:type ontology:Q874405 } } } } . FILTER ( ?c < ?r ) }
Entzheim Épernay Chappes Les Mureaux Ruaudin Macau Fontainebleau Fontevraud-l'Abbaye Illkirch-Graffenstaden Noisy-le-Grand Les Ulis Romorantin-Lanthenay Charenton-le-Pont Aiglepierre Miribel Mondeville Ludes Pouzauges Dorlisheim Fontaine-lès-Dijon Méolans-Revel Abrest Blagnac Buc Lesquin Thiais Bondoufle Saint-Sébastien-sur-Loire Batilly Nouméa Saint-Uze Marnes-la-Coquette Chantilly Chens-sur-Léman Corte Bayonne Aubenas Bourg-lès-Valence Saint-Malo Eckbolsheim Reichstett Verneuil-en-Halatte Draguignan Château-Thierry Tours-sur-Marne Vannes Divonne-les-Bains Saint-Chef Kingersheim Marolles-en-Hurepoix Ferney-Voltaire La Possession Saint-Estèphe Lillers Longpont-sur-Orge Villebarou Signes Roquefort Ay Nogent-sur-Marne Saint-Berthevin La Crèche Châteaulin Meudon Châlons-en-Champagne Les Clayes-sous-Bois Molsheim Metz Bezons Durtal Annecy-le-Vieux Bry-sur-Marne Pau Champagnole Centre-Val de Loire Cerizay Pertuis Fourchambault Blanquefort Viviers Plouzané L'Isle-Jourdain Bédarieux Trégueux Cholet Valenciennes Aubagne Auberchicourt Arcueil Marcoussis Beynost Sarcelles Joinville-le-Pont Champs-sur-Yonne Villepinte Évreux Mézidon-Canon Seyssinet-Pariset Onnaing Saint-Aignan-Grandlieu Pierrelatte Romilly-sur-Seine Morteau Quetigny Carros Berck Castelsarrasin Aurillac Lons-le-Saunier Bourges Évian-les-Bains Saint-Rémy-lès-Chevreuse La Ciotat Perpignan Bagnolet Saint-Pol-de-Léon Paray-Vieille-Poste La Ménitré Mâcon Figeac L'Horme Bagneux Gap Tremblay-en-France Talence Lamballe Bernin Montesquieu Saint-Vallier Sentheim Vert-le-Petit Saint-Genis-Laval La Courneuve Saint-Pé-de-Bigorre Saint-Cyr-au-Mont-d'Or Cestas Mantes-la-Ville Ancenis Limeil-Brévannes Contres Loos-en-Gohelle Brest Villebon-sur-Yvette Crolles Plaisir Béziers Antony Coutances Saint-Martin-d'Hères Nogent-sur-Seine Oyonnax Aubière Beaurainville Quimperlé Aimargues Magny-Cours Toussus-le-Noble Villeneuve-la-Garenne Beaune Benfeld Roscoff Briord Mauléon Angoulême Cannes Denain Coulounieix-Chamiers Croix Cognac Cesson-Sévigné Allauch Saint-Jean-de-Moirans Milly-la-Forêt Bonneville Saint-Marcel Ermont Saint-Louis Bréhal Buzançais Créteil Cornillé Escalquens Douarnenez Vichy Chémeré-le-Roi Le Petit-Quevilly Panazol Jarnac-Champagne Wissous Vincennes Basse-Terre Bouguenais Saint-André-lez-Lille Limay Champs-sur-Marne Courcouronnes Reyniès Cherbourg-Octeville Vélizy-Villacoublay Bondy Vitry-sur-Seine Rumilly Écaquelon Reichshoffen Montreuil Le Bar-sur-Loup Averton Lorient Émerainville Lezennes Sarre-Union Pibrac Briare Ugine Clamart Aïcirits-Camou-Suhast Fort-de-France Lédenon Roissy-en-Brie Aigrefeuille-d'Aunis Mimizan Choisy-le-Roi Obernai Anneyron Chalonnes-sur-Loire Oberhausbergen Maisons-Laffitte Grigny Le Perray-en-Yvelines Creil Ergué-Gabéric Roumazières-Loubert Taissy Châteauroux Anglet Saint-Cloud Charnay-lès-Mâcon Annonay Terssac Toulon Lagorce Nevers Saint-Genis-Pouilly Saint-Genest-d'Ambière Valence Montgeron Saint-Julien-en-Genevois Étuz Hautot-le-Vatois Igny Azereix Noisiel Templemars Andrézieux-Bouthéon Lestrem Labège Saint-Ours Le Bourget Étain Dieppe Tournan-en-Brie Boulogne-sur-Mer Montigny-le-Bretonneux Mont-Saint-Aignan Arques Guyancourt Maisons-Alfort Écully Châteauneuf-du-Pape Vanves Villejuif Le Lamentin Pluguffan Crespin Mouzeil Donneville Longueil Saint-Louis-lès-Bitche Palaiseau Trégunc Roanne Castelnaudary Tain-l'Hermitage Melun Gretz-Armainvilliers Faaa Chevreuse Plombières-les-Bains Tournefeuille Oulins Raismes Douai Le Grand-Quevilly La Seyne-sur-Mer Malakoff Pontivy Marcigny La Selle-en-Luitré Samois-sur-Seine Bourbon-l'Archambault Saint-Égrève Sausheim Les Avirons Wasselonne Papeete Lohéac Grans Tarbes Aix-les-Bains Limonest Domancy Fresnoy-le-Grand Furiani Avon, Seine-et-Marne Feucherolles La Farlède Vaumeilh Guer Servon Saint-Étienne Chouilly Villieu-Loyes-Mollon Lattes Menton Chavanod Meylan Castres Merkwiller-Pechelbronn Manosque Brignoles Périgueux Castelnau-le-Lez Saint-Pierre Ambès Saint-Florent-le-Vieil Alès La Rochelle Balbigny Messimy La Gacilly La Baume Laval Crépy-en-Valois Vaulx-en-Velin Orly Haguenau Cachan Romans-sur-Isère Caen Fécamp Tourcoing Dembeni Élancourt Le Port Marcy-l'Étoile Dunkirk Yerres Cayenne Hem Lognes Saint-Marcel Saint-Grégoire Corsica Gémenos La Chapelle-Saint-Mesmin Issoire Abbeville Orvault Villefrancœur Lectoure Gif-sur-Yvette Honfleur Tours Amboise Bazainville Ruillé-sur-Loir Metz-Tessy Avrainville Chalezeule Cogolin Saint-Germain-en-Laye Avignon Corbas Orsay Auray Bastia Romainville Cluny Libourne Montluçon Grande-Synthe Voreppe Saint-Maur-des-Fossés Le Plessis-Belleville Troyes Cergy
Saint-Étienne, Meudon and Perpignan are the head office for less number of business enterprises and social groups located than Ormes
Saint-Étienne Meudon Perpignan
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type social group
action count
action filter_multi_types
action find_reverse
entity Ormes
relation headquarters location
type business enterprise
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?c ) WHERE { { ?i rdf:type ontology:business_enterprise . ?u rdf:type ontology:type_of_french_administrative_division . ?i property:headquarters_location ?u } UNION { ?i property:headquarters_location ?u . ?u rdf:type ontology:type_of_french_administrative_division . ?i rdf:type ontology:social_group } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:headquarters_location resource:Ormes . { { ?v rdf:type ontology:business_enterprise } UNION { ?v rdf:type ontology:social_group } } } } . FILTER ( ?c < ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q356204
P19
Q502895
USER
How many people have location of birth at Panay ?
(c(Q502895),P19,Q356204)
action count
action filter_type
action find_reverse
entity Q356204
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q356204']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P19 resource:Q356204 . ?t rdf:type ontology:Q502895 }
Panay
action count
action filter_type
action find_reverse
entity Panay
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Panay']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:place_of_birth resource:Panay . ?t rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q19898685
(c(Q502895),P19,Q356204)
action count
action filter_type
action find_reverse
entity Q356204
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q356204']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P19 resource:Q356204 . ?t rdf:type ontology:Q502895 }
Antonio Belo
1
action count
action filter_type
action find_reverse
entity Panay
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Panay']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:place_of_birth resource:Panay . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3463575
Q502895
USER
And also tell me about Saint-Élie-de-Caxton?
(Q3463575,P19,c(Q502895))
action count
action filter_type
action find
entity Q3463575
relation P19
type Q502895
['Q3463575', 'P19', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q3463575 property:P19 ?b . ?b rdf:type ontology:Q502895 }
Saint-Élie-de-Caxton
action count
action filter_type
action find
entity Saint-Élie-de-Caxton
relation place of birth
type common name
['Saint-Élie-de-Caxton', 'place of birth', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Saint-Élie-de-Caxton property:place_of_birth ?b . ?b rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q3463575,P19,c(Q502895))
action count
action filter_type
action find
entity Q3463575
relation P19
type Q502895
[ANSWER]
['Q3463575', 'P19', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q3463575 property:P19 ?b . ?b rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Saint-Élie-de-Caxton
relation place of birth
type common name
['Saint-Élie-de-Caxton', 'place of birth', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Saint-Élie-de-Caxton property:place_of_birth ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q7275 Q20667921
USER
How many states have atleast 1 french administrative division as their county seat ?
(c(Q20667921),P1376,c(Q7275))
action count
action atleast
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1376 ?o . ?o rdf:type ontology:Q7275 . ?m rdf:type ontology:Q20667921 } GROUP BY ?o } }
action count
action atleast
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:capital_of ?o . ?o rdf:type ontology:state . ?m rdf:type ontology:type_of_french_administrative_division } GROUP BY ?o } }
[]
state type of french administrative division
SYSTEM
3
Q3456417 Q842091 Q112558
(c(Q20667921),P1376,c(Q7275))
action count
action atleast
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1376 ?o . ?o rdf:type ontology:Q7275 . ?m rdf:type ontology:Q20667921 } GROUP BY ?o } }
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
3
action count
action atleast
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?w >= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:capital_of ?o . ?o rdf:type ontology:state . ?m rdf:type ontology:type_of_french_administrative_division } GROUP BY ?o } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8534 Q234735
P17
Q15617994
USER
Which administrative territories are Meudon or Wakhan River located in ?
OR((Q234735,P17,c(Q15617994)), (Q8534,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q234735
relation P17
action find
entity Q8534
relation P17
type Q15617994
{'OR': [['Q234735', 'P17', {'concept': 'Q15617994'}], ['Q8534', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?e property:P17 ?a . VALUES ( ?e ) { ( resource:Q234735 ) ( resource:Q8534 ) } } . ?a rdf:type ontology:Q15617994 }
Wakhan River Meudon
action filter_type
action union
action find
entity Meudon
relation country
action find
entity Wakhan River
relation country
type designation for an administrative territorial entity
{'OR': [['Meudon', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wakhan River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?e property:country ?a . VALUES ( ?e ) { ( resource:Meudon ) ( resource:Wakhan_River ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q889
SYSTEM
France, Afghanistan
Q142 Q889
OR((Q234735,P17,c(Q15617994)), (Q8534,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q234735
relation P17
action find
entity Q8534
relation P17
type Q15617994
Meudon or Wakhan River are located in [ANSWERS]
{'OR': [['Q234735', 'P17', {'concept': 'Q15617994'}], ['Q8534', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?e property:P17 ?a . VALUES ( ?e ) { ( resource:Q234735 ) ( resource:Q8534 ) } } . ?a rdf:type ontology:Q15617994 }
France Afghanistan
Meudon or Wakhan River are located in France and Afghanistan
France Afghanistan
action filter_type
action union
action find
entity Meudon
relation country
action find
entity Wakhan River
relation country
type designation for an administrative territorial entity
{'OR': [['Meudon', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wakhan River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?e property:country ?a . VALUES ( ?e ) { ( resource:Meudon ) ( resource:Wakhan_River ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]