Simple Question (Direct)
Simple Question
Q768163
P47
Q20667921
USER
Which french administrative divisions share border with Tavaux ?
(Q768163,P47,c(Q20667921))
action filter_type
action find
entity Q768163
relation P47
type Q20667921
['Q768163', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q20667921 . resource:Q768163 property:P47 ?f }
Tavaux
action filter_type
action find
entity Tavaux
relation shares border with
type type of french administrative division
['Tavaux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:type_of_french_administrative_division . resource:Tavaux property:shares_border_with ?f }
[]
type of french administrative division
Q539449 Q662246 Q1161711
SYSTEM
Saint-Aubin, Damparis, Champdivers
Q321966 Q657807 Q662246 Q1161711 Q539449 Q405130
(Q768163,P47,c(Q20667921))
action filter_type
action find
entity Q768163
relation P47
type Q20667921
[ANSWERS] share border with Tavaux
['Q768163', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q20667921 . resource:Q768163 property:P47 ?f }
Gevry Abergement-la-Ronce Damparis Champdivers Saint-Aubin Molay
Saint-Aubin, Damparis and Champdivers share border with Tavaux
Saint-Aubin Damparis Champdivers
action filter_type
action find
entity Tavaux
relation shares border with
type type of french administrative division
['Tavaux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:type_of_french_administrative_division . resource:Tavaux property:shares_border_with ?f }
[]
Clarification
Simple Question|Single Entity|Indirect
Q662246
P17
Q15617994
USER
Which administrative territory is that french administrative division present in ?
(Q662246,P17,c(Q15617994))
action filter_type
action find
entity Q662246
relation P17
type Q15617994
['Q662246', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q662246 property:P17 ?e }
Damparis
action filter_type
action find
entity Damparis
relation country
type designation for an administrative territorial entity
['Damparis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Damparis property:country ?e }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q662246
SYSTEM
Did you mean Damparis ?
Q539449 Q662246 Q1161711
(Q539449,P17,c(Q15617994)) (Q662246,P17,c(Q15617994)) (Q1161711,P17,c(Q15617994))
[ANSWER]
['Q539449', 'P17', {'concept': 'Q15617994'}] ['Q662246', 'P17', {'concept': 'Q15617994'}] ['Q1161711', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q662246 property:P17 ?e }
Saint-Aubin Damparis Champdivers
Did you mean Damparis ?
Damparis
['Saint-Aubin', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Damparis', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Champdivers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Damparis property:country ?e }
[]
Simple Question (Coreferenced)
USER
Yes
(Q662246,P17,c(Q15617994))
['Q662246', 'P17', {'concept': 'Q15617994'}]
['Damparis', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q662246,P17,c(Q15617994))
action filter_type
action find
entity Q662246
relation P17
type Q15617994
That french administrative division is in [ANSWER]
['Q662246', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q662246 property:P17 ?e }
France
That french administrative division is in France
France
action filter_type
action find
entity Damparis
relation country
type designation for an administrative territorial entity
['Damparis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Damparis property:country ?e }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1376081 Q662246
P47
Q20667921
USER
Which french administrative divisions are bordered by Damparis or Prugny ?
OR((c(Q20667921),P47,Q662246), (c(Q20667921),P47,Q1376081))
action filter_type
action union
action find_reverse
entity Q662246
relation P47
action find_reverse
entity Q1376081
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q662246'], [{'concept': 'Q20667921'}, 'P47', 'Q1376081']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q20667921 . { VALUES ( ?z ) { ( resource:Q662246 ) ( resource:Q1376081 ) } . ?t property:P47 ?z } }
Prugny Damparis
action filter_type
action union
action find_reverse
entity Damparis
relation shares border with
action find_reverse
entity Prugny
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Damparis'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Prugny']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:type_of_french_administrative_division . { VALUES ( ?z ) { ( resource:Damparis ) ( resource:Prugny ) } . ?t property:shares_border_with ?z } }
[]
type of french administrative division
Q16838 Q653448 Q1366381 Q768163 Q655248 Q657807 Q321966 Q1161049 Q954037 Q974093
SYSTEM
Some of them are Samerey, Foucherans, Saint-Germain, Tavaux, Vauchassis, Abergement-la-Ronce, Gevry, Choisey, Messon, Torvilliers
Q926405 Q1148723 Q767072 Q653448 Q1366381 Q954037 Q657807 Q321966 Q655248 Q1161049 Q768163 Q974093 Q16838
OR((c(Q20667921),P47,Q662246), (c(Q20667921),P47,Q1376081))
action filter_type
action union
action find_reverse
entity Q662246
relation P47
action find_reverse
entity Q1376081
relation P47
type Q20667921
[ANSWERS] are bordered by Damparis or Prugny
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q662246'], [{'concept': 'Q20667921'}, 'P47', 'Q1376081']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q20667921 . { VALUES ( ?z ) { ( resource:Q662246 ) ( resource:Q1376081 ) } . ?t property:P47 ?z } }
Laines-aux-Bois Bucey-en-Othe Champvans Foucherans Saint-Germain Messon Abergement-la-Ronce Gevry Vauchassis Choisey Tavaux Torvilliers Samerey
Samerey, Foucherans, Saint-Germain, Tavaux, Vauchassis, Abergement-la-Ronce, Gevry, Choisey, Messon and Torvilliers are bordered by Damparis or Prugny
Samerey Foucherans Saint-Germain Tavaux Vauchassis Abergement-la-Ronce Gevry Choisey Messon Torvilliers
action filter_type
action union
action find_reverse
entity Damparis
relation shares border with
action find_reverse
entity Prugny
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Damparis'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Prugny']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:type_of_french_administrative_division . { VALUES ( ?z ) { ( resource:Damparis ) ( resource:Prugny ) } . ?t property:shares_border_with ?z } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15617994 Q14524493 Q15617994
USER
Which administrative territories come from min number of administrative territories or terrains ?
(c(Q15617994),P138,c(Q15617994)|c(Q14524493))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?x ) { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q14524493 ) ( ontology:Q15617994 ) } } GROUP BY ?i } } . FILTER ( ?l = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { { ?c property:P138 ?m . ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } UNION { ?c property:P138 ?m . ?m rdf:type ontology:Q14524493 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } }
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'terrain'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?x ) { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:terrain ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?i } } . FILTER ( ?l = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { { ?c property:named_after ?m . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:named_after ?m . ?m rdf:type ontology:terrain . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
designation for an administrative territorial entity terrain designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q701 Q158876 Q968630 Q705 Q3216 Q707 Q1087137 Q709 Q1421544 Q12789 Q1027 Q12779 Q124000 Q12631 Q1041 Q3305157 Q492430 Q668 Q14697553 Q10919 Q2567507 Q3278 Q12563 Q142 Q33 Q685048 Q21671144 Q801 Q12538 Q12536 Q12740 Q189 Q12820 Q657 Q3184 Q1098820 Q1452650 Q12594 Q3349 Q378004 Q2316529 Q2803031 Q711 Q710 Q1979 Q625403 Q691368 Q1817784 Q199974 Q2998020 Q3083 Q7408058 Q1939894 Q3240 Q1028 Q12772 Q3286 Q691890 Q3249 Q12607 Q2310748 Q3164 Q15055472 Q1465069 Q12572 Q554491 Q159 Q686924 Q598193 Q1090678 Q12556 Q12526 Q12689 Q12753 Q624428 Q155 Q1232680 Q2527360 Q699731 Q290739 Q3377 Q12576 Q3372 Q231168 Q739 Q12589 Q2521404 Q12574 Q957825 Q1270638 Q3093 Q161258 Q1965 Q1508919 Q979470 Q3259 Q10903 Q786 Q1142326 Q10957559 Q5015782 Q676543 Q1270648 Q2758 Q3563282 Q12745 Q12515 Q451448 Q12517 Q3368 Q32 Q31 Q30 Q924 Q36 Q12770 Q928 Q3361 Q39 Q3364 Q302479 Q2514636 Q1452646 Q986 Q541095 Q20211 Q3148 Q219 Q1390630 Q736 Q2567535 Q12798 Q4336071 Q1032 Q1508927 Q11140 Q3068 Q12792 Q676178 Q1268811 Q1338277 Q236 Q492437 Q230 Q221 Q232 Q233 Q2304605 Q1914678 Q282355 Q238 Q12620 Q566032 Q12661 Q20 Q4229407 Q621869 Q1042 Q475659 Q28 Q1366860 Q12788 Q12584 Q1025 Q683555 Q1020 Q2009 Q843 Q12709 Q184 Q548396 Q1029 Q3336 Q1206596 Q3334 Q541811 Q707950 Q3131 Q7084 Q1904 Q27495866 Q12784 Q12578 Q12717 Q3139 Q12782 Q3342 Q12559 Q558771 Q12679 Q12700 Q12703 Q12675 Q811 Q1270623 Q347 Q71090 Q1989 Q4165945 Q21915715 Q902 Q153402 Q3207 Q974 Q3120 Q894972 Q894971 Q14810 Q967 Q962 Q963 Q694 Q3125 Q114 Q117 Q81751 Q12569 Q2921378 Q1788988 Q754 Q752 Q750 Q12730 Q12657 Q20095245 Q12736 Q12642 Q160307 Q505607 Q6661829 Q2295479 Q2115819 Q912 Q1270568 Q1270636 Q2136219 Q3514973 Q1090691 Q12765 Q1005 Q977 Q1019 Q1008 Q3509886 Q971 Q3194 Q3113 Q568833 Q252157 Q12652 Q3110307 Q894973 Q541589 Q20310 Q760 Q1033 Q11301 Q1030 Q12804 Q12808 Q894970 Q12722 Q784 Q3326 Q79 Q1234961 Q12553 Q3528124 Q775 Q15060143 Q776 Q810 Q770 Q773 Q46130 Q1393469 Q27 Q1011 Q1013 Q480103 Q4149 Q12549 Q3266 Q12626 Q8575586 Q12543 Q3105 Q12545 Q1558632 Q1913193 Q4066675 Q12758 Q599866 Q1579364 Q731547 Q12816 Q2938 Q12751 Q1951 Q2236821 Q1952 Q3353 Q3357 Q1231 Q13401101 Q558796 Q12564
(c(Q15617994),P138,c(Q15617994)|c(Q14524493))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
[ANSWERS] come from min number of administrative territories or terrains
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q14524493'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?x ) { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q14524493 ) ( ontology:Q15617994 ) } } GROUP BY ?i } } . FILTER ( ?l = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { { ?c property:P138 ?m . ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } UNION { ?c property:P138 ?m . ?m rdf:type ontology:Q14524493 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } }
North Holland Reinickendorf Taro Zeeland Aveyron Flevoland Rockaway, New Jersey Marshall Islands Wettertal Var Mauritius Tarn-et-Garonne Victoria Meuse Senegal Mella Bouches-de-l'Elbe India Neetzow-Liepen Medebach Arno Charente-Maritime Landes France Finland Simplon Mezhetchina Israel Haute-Garonne Abbasid caliphate Sarthe Iceland Yvelines Chad Ariège Gênes Ombrone Marne Côtes-d'Armor Forêts Noordpolderzijl Pasop Mongolia Kiribati Prince Edward Island Schwielowsee Léman Leninkent, Makhachkala, Republic of Dagestan Hürtgenwald Corse Ain Sam Rayburn Independent School District Upper Oka Principalities Bouches-du-Rhône Morocco Tarn Cher Corcyre Calvados Haute-Marne Liamone Ardennes Gehlsbach Frise Haute-Loire Banan District Russia Mer-Égée Apennins Sègre Indre-et-Loire Gironde Pas-de-Calais Seine-et-Marne Biebertal Brazil Ithaque Stura Wied Sesia Eure-et-Loir Lot Eure Zuyderzée Colombia Manche Veytal Loiret Yssel-Supérieur Rhine Aisne Clipperton Island New Brunswick Marengo Seine-et-Oise Cantal Finnentrop Dominican Republic Seine Moldavia Cabot Public Schools Sankt Thomas Sieg Mönchengladbach Rumi District Savoie Gard Am Salzhaff Gers Essonne Luxembourg Belgium United States of America Tanzania Poland Somme Philippines Doubs Switzerland Drôme Ems-Occidental Vogtei Montenotte Eritrea Rhin-et-Moselle Peenehagen Ardèche Bulgaria Ourthe Ecuador Pô Vendée Ordzhonikidzevskiy raion of Zaporizhzhya Niger Méditerranée Möhnesee Loire-Atlantique Vaucluse Viereck Dyle Sambre-et-Meuse Montenegro Bouches-du-Weser Georgia Republic of Macedonia Kazakhstan Malta Spitsbergen Vlagtwedder-Veldhuis Nesse-Apfelstädt San Marino Mayenne Rheinbreitbach Nord Norway Komarovsky, Orenburg Oblast Georgsdorf Seychelles Sassenburg Hungary Escaut Val-de-Marne Maine-et-Loire Mauritania Vyronas Malawi Yukon Pakistan Pyrénées-Orientales Belarus Pommerby Mozambique Corse-du-Sud Deux-Nèthes Haute-Corse Ems-Oriental Muldestausee Alpes-de-Haute-Provence Seevetal Ontario Corse Val-d'Oise Lot-et-Garonne Bas-Rhin Alpes-Maritimes Territoire de Belfort Côte-d'Or Isère Wedendorfersee Orne Hautes-Pyrénées Pyrénées-Atlantiques Oise Nicaragua Meurthe Liechtenstein Augustusburg Saskatchewan Sheikh Zayed City Kloster Tempzin Bangladesh Roer Aude Democratic Republic of the Congo Jura Bouches-de-l'Yssel Bouches-de-l'Escaut Nettetal Burundi Benin Botswana South Holland Hautes-Alpes Kenya Ghana Niedereschach Loire Bouches-de-l'Èbre Trasimène Trinidad and Tobago Groningen Bolivia Haute-Saône Nièvre Sept-Saints Saône-et-Loire Morbihan Fatimid caliphate Philippsreut Llanvaches Zandberg, Zeeland Klein-Ulsda Mali Ems Ruhr Amsterdam, Saskatchewan Tanaro Ter Deux-Sèvres Gambia Djibouti Madagascar Côte d'Ivoire Sègre-Ter Republic of the Congo Aube Allier Meuse-Inférieure Sarre Moselle Golo Bouches-du-Rhin Ems-Supérieur Kuckssee Saint Lucia Nigeria Ennepetal Namibia Vienne Haute-Vienne Bouches-de-la-Meuse Haut-Rhin Dominica Corrèze Egypt Doire Indre Tibre Gelderland Stepenitztal Utrecht Jordan Friesland Overijssel Rhône Jemmapes Ireland Cape Verde Lesotho Amt Volmarstein Neustadt an der Weinstraße Ille-et-Vilaine Charente Meurthe-et-Moselle Umayyad Caliphate Hauts-de-Seine Vosges Hérault Rome Chkalovsk Microdistrict Annino Seine-Maritime Lev Tolstoy Lys Lippe Yonne Leverkusen Haute-Savoie Alberta Rhône-et-Loire Nova Scotia Creuse Dordogne Kosovo Region Brandon Valley School District Obere Warnow Loir-et-Cher
Brazil, United States of America and Georgia come from min number of administrative territories or terrains
Brazil United States of America Georgia
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'terrain'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?x ) { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:terrain ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?i } } . FILTER ( ?l = ?x ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?l ) WHERE { { ?c property:named_after ?m . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:named_after ?m . ?m rdf:type ontology:terrain . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q6781672
P915
Q838948
USER
How many works of art were filmed in the location France or Maryon Park ?
(c(Q838948),P915,Q142) (c(Q838948),P915,Q6781672)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P915
type Q838948
action filter_type
action find_reverse
entity Q6781672
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q142'] [{'concept': 'Q838948'}, 'P915', 'Q6781672']
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:Q142 ) ( resource:Q6781672 ) } . ?p property:P915 ?e }
France Maryon Park
action count
action union
action filter_type
action find_reverse
entity France
relation filming location
type work of art
action filter_type
action find_reverse
entity Maryon Park
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'France'] [{'concept': 'work of art'}, 'filming location', 'Maryon Park']
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:France ) ( resource:Maryon_Park ) } . ?p property:filming_location ?e }
[]
work of art
SYSTEM
5
Q658204 Q19089 Q165847 Q1031257 Q1383269
(c(Q838948),P915,Q142) (c(Q838948),P915,Q6781672)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P915
type Q838948
action filter_type
action find_reverse
entity Q6781672
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q142'] [{'concept': 'Q838948'}, 'P915', 'Q6781672']
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:Q142 ) ( resource:Q6781672 ) } . ?p property:P915 ?e }
Blowup GoldenEye 102 Dalmatians Empire of the Wolves Ex
5
action count
action union
action filter_type
action find_reverse
entity France
relation filming location
type work of art
action filter_type
action find_reverse
entity Maryon Park
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'France'] [{'concept': 'work of art'}, 'filming location', 'Maryon Park']
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:France ) ( resource:Maryon_Park ) } . ?p property:filming_location ?e }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q1267889 Q355304 Q20667921
USER
Which french administrative divisions are located in the neighbourhood of min number of waterways and watercourses ?
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?v WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?h WHERE { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } } GROUP BY ?h } . FILTER ( ?s = ?e ) }
action argmin
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?v WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?h WHERE { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:watercourse ) ( ontology:waterway ) } } GROUP BY ?h } . FILTER ( ?s = ?e ) }
[]
waterway watercourse type of french administrative division
Q47045 Q249884 Q44401
SYSTEM
Saint-Denis, Saint-Pierre, Cayenne
Q3769 Q665411 Q1649363 Q467030 Q956943 Q842027 Q71356 Q147606 Q429770 Q266886 Q380224 Q1014763 Q652100 Q1326390 Q751619 Q14112 Q47045 Q1066836 Q391365 Q926768 Q1649370 Q1617681 Q654000 Q249884 Q769160 Q513962 Q1014814 Q662942 Q323399 Q70491 Q231180 Q191765 Q26583 Q478215 Q1757048 Q1014771 Q1014731 Q44401 Q1001582 Q691092 Q752535 Q1165029
(c(Q20667921),P206,c(Q1267889)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action find_tuple_counts
relation P206
type Q20667921
type Q355304
[ANSWERS] are located in the neighbourhood of min number of waterways and watercourses
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?v WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?h WHERE { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } } GROUP BY ?h } . FILTER ( ?s = ?e ) }
French Guiana Leffrinckoucke Saint-Leu L'Île-Rousse Le Port Rogliano Île-aux-Moines Fort-Mahon-Plage La Possession Sisco Marck Trois-Bassins Saint-Philippe Petite-Île Sérignan Corsica Saint-Denis Grand-Fort-Philippe Bray-Dunes Tahaa Saint-André Saint-Louis Monticello Saint-Pierre Grande-Synthe Oye-Plage Les Avirons Sainte-Marie Gravelines Larmor-Baden Zuydcoote Anglet Béhuard Saint-Benoît Sainte-Suzanne L'Étang-Salé Sainte-Rose Cayenne Batz-sur-Mer Bras-Panon Valras-Plage Le Pouliguen
Saint-Denis, Saint-Pierre and Cayenne are located in the neighbourhood of min number of waterways and watercourses
Saint-Denis Saint-Pierre Cayenne
action argmin
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?e ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?v WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?h WHERE { ?z rdf:type ?l . VALUES ( ?l ) { ( ontology:watercourse ) ( ontology:waterway ) } } GROUP BY ?h } . FILTER ( ?s = ?e ) }
[]