Simple Question (Direct)
Simple Question
Q3092333
P20
Q20667921
USER
Where did Félix-Alexandre Desruelles die ?
(Q3092333,P20,c(Q20667921))
action filter_type
action find
entity Q3092333
relation P20
type Q20667921
['Q3092333', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q3092333 property:P20 ?z . ?z rdf:type ontology:Q20667921 }
Félix-Alexandre Desruelles
action filter_type
action find
entity Félix-Alexandre Desruelles
relation place of death
type type of french administrative division
['Félix-Alexandre Desruelles', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Félix-Alexandre_Desruelles property:place_of_death ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q343
SYSTEM
La Flèche
Q343
(Q3092333,P20,c(Q20667921))
action filter_type
action find
entity Q3092333
relation P20
type Q20667921
Félix-Alexandre Desruelles died in [ANSWER]
['Q3092333', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q3092333 property:P20 ?z . ?z rdf:type ontology:Q20667921 }
La Flèche
Félix-Alexandre Desruelles died in La Flèche
La Flèche
action filter_type
action find
entity Félix-Alexandre Desruelles
relation place of death
type type of french administrative division
['Félix-Alexandre Desruelles', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Félix-Alexandre_Desruelles property:place_of_death ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3092333
P106
Q12737077
USER
What is the job of Félix-Alexandre Desruelles ?
(Q3092333,P106,c(Q12737077))
action filter_type
action find
entity Q3092333
relation P106
type Q12737077
['Q3092333', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3092333 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Félix-Alexandre Desruelles
action filter_type
action find
entity Félix-Alexandre Desruelles
relation occupation
type occupation
['Félix-Alexandre Desruelles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Félix-Alexandre_Desruelles property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q1281618
SYSTEM
sculptor
Q1281618
(Q3092333,P106,c(Q12737077))
action filter_type
action find
entity Q3092333
relation P106
type Q12737077
The job of Félix-Alexandre Desruelles is a [ANSWER]
['Q3092333', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3092333 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
sculptor
The job of Félix-Alexandre Desruelles is a sculptor
sculptor
action filter_type
action find
entity Félix-Alexandre Desruelles
relation occupation
type occupation
['Félix-Alexandre Desruelles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Félix-Alexandre_Desruelles property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3092333
P84
Q811979
USER
Which architectural structure has its designs created by that person ?
(c(Q811979),P84,Q1281618)
action filter_type
action find_reverse
entity Q3092333
relation P84
type Q811979
[{'concept': 'Q811979'}, 'P84', 'Q1281618']
SELECT DISTINCT ?t WHERE { ?t property:P84 resource:Q3092333 . ?t rdf:type ontology:Q811979 }
Félix-Alexandre Desruelles
action filter_type
action find_reverse
entity Félix-Alexandre Desruelles
relation architect
type architectural structure
[{'concept': 'architectural structure'}, 'architect', 'sculptor']
SELECT DISTINCT ?t WHERE { ?t property:architect resource:Félix-Alexandre_Desruelles . ?t rdf:type ontology:architectural_structure }
[]
architectural structure
Q3076051
SYSTEM
fontaine Pastorale
Q3076051
(c(Q811979),P84,Q1281618)
action filter_type
action find_reverse
entity Q3092333
relation P84
type Q811979
[ANSWER] has its designs created by that person
[{'concept': 'Q811979'}, 'P84', 'Q1281618']
SELECT DISTINCT ?t WHERE { ?t property:P84 resource:Q3092333 . ?t rdf:type ontology:Q811979 }
fontaine Pastorale
Fontaine Pastorale has its designs created by that person
fontaine Pastorale
action filter_type
action find_reverse
entity Félix-Alexandre Desruelles
relation architect
type architectural structure
[{'concept': 'architectural structure'}, 'architect', 'sculptor']
SELECT DISTINCT ?t WHERE { ?t property:architect resource:Félix-Alexandre_Desruelles . ?t rdf:type ontology:architectural_structure }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3076051 Q3092333
P800
Q502895
USER
Is Félix-Alexandre Desruelles author of that architectural structure ?
(Q3092333,P800,Q3076051)
action is_in
entity Q3076051
action find
entity Q3092333
relation P800
['Q3092333', 'P800', 'Q3076051']
ASK WHERE { resource:Q3092333 property:P800 resource:Q3076051 }
fontaine Pastorale Félix-Alexandre Desruelles
action is_in
entity fontaine Pastorale
action find
entity Félix-Alexandre Desruelles
relation notable work
['Félix-Alexandre Desruelles', 'notable work', 'fontaine Pastorale']
ASK WHERE { resource:Félix-Alexandre_Desruelles property:notable_work resource:fontaine_Pastorale }
[]
common name
SYSTEM
YES
(Q3092333,P800,Q3076051)
action is_in
entity Q3076051
action find
entity Q3092333
relation P800
[ANSWER]
['Q3092333', 'P800', 'Q3076051']
ASK WHERE { resource:Q3092333 property:P800 resource:Q3076051 }
Yes
action is_in
entity fontaine Pastorale
action find
entity Félix-Alexandre Desruelles
relation notable work
['Félix-Alexandre Desruelles', 'notable work', 'fontaine Pastorale']
ASK WHERE { resource:Félix-Alexandre_Desruelles property:notable_work resource:fontaine_Pastorale }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1598127 Q3092333
P47 P19
Q20667921
USER
Which french administrative divisions were Félix-Alexandre Desruelles born or share border with Pontfaverger-Moronvilliers ?
OR((Q3092333,P19,c(Q20667921)), (Q1598127,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q3092333
relation P19
action find
entity Q1598127
relation P47
type Q20667921
{'OR': [['Q3092333', 'P19', {'concept': 'Q20667921'}], ['Q1598127', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3092333 property:P19 ?z } UNION { resource:Q1598127 property:P47 ?z } } . ?z rdf:type ontology:Q20667921 }
Pontfaverger-Moronvilliers Félix-Alexandre Desruelles
action filter_type
action union
action find
entity Félix-Alexandre Desruelles
relation place of birth
action find
entity Pontfaverger-Moronvilliers
relation shares border with
type type of french administrative division
{'OR': [['Félix-Alexandre Desruelles', 'place of birth', {'concept': 'type of french administrative division'}], ['Pontfaverger-Moronvilliers', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Félix-Alexandre_Desruelles property:place_of_birth ?z } UNION { resource:Pontfaverger-Moronvilliers property:shares_border_with ?z } } . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1020616 Q1221506 Q1219628 Q683331 Q783740 Q373627 Q163795 Q1102468
SYSTEM
Aussonce, Saint-Hilaire-le-Petit, Saint-Martin-l'Heureux, Bétheniville, Prosnes, Selles, Valenciennes, Beine-Nauroy
Q1020616 Q1221506 Q1219628 Q683331 Q783740 Q373627 Q163795 Q1102468
OR((Q3092333,P19,c(Q20667921)), (Q1598127,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q3092333
relation P19
action find
entity Q1598127
relation P47
type Q20667921
[ANSWERS] were Félix-Alexandre Desruelles born or share border with Pontfaverger-Moronvilliers
{'OR': [['Q3092333', 'P19', {'concept': 'Q20667921'}], ['Q1598127', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3092333 property:P19 ?z } UNION { resource:Q1598127 property:P47 ?z } } . ?z rdf:type ontology:Q20667921 }
Aussonce Saint-Hilaire-le-Petit Saint-Martin-l'Heureux Bétheniville Prosnes Selles Valenciennes Beine-Nauroy
Aussonce, Saint-Hilaire-le-Petit, Saint-Martin-l'Heureux, Bétheniville, Prosnes, Selles, Valenciennes and Beine-Nauroy were Félix-Alexandre Desruelles born or share border with Pontfaverger-Moronvilliers
Aussonce Saint-Hilaire-le-Petit Saint-Martin-l'Heureux Bétheniville Prosnes Selles Valenciennes Beine-Nauroy
action filter_type
action union
action find
entity Félix-Alexandre Desruelles
relation place of birth
action find
entity Pontfaverger-Moronvilliers
relation shares border with
type type of french administrative division
{'OR': [['Félix-Alexandre Desruelles', 'place of birth', {'concept': 'type of french administrative division'}], ['Pontfaverger-Moronvilliers', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Félix-Alexandre_Desruelles property:place_of_birth ?z } UNION { resource:Pontfaverger-Moronvilliers property:shares_border_with ?z } } . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q343 Q1515
P1376
Q13220204
USER
How many administrative country subdivisions have La Flèche or Abidjan as their capital ?
(Q343,P1376,c(Q13220204)) (Q1515,P1376,c(Q13220204))
action count
action union
action filter_type
action find
entity Q343
relation P1376
type Q13220204
action filter_type
action find
entity Q1515
relation P1376
type Q13220204
['Q343', 'P1376', {'concept': 'Q13220204'}] ['Q1515', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { ?p rdf:type ontology:Q13220204 . resource:Q343 property:P1376 ?p } UNION { resource:Q1515 property:P1376 ?p . ?p rdf:type ontology:Q13220204 } }
La Flèche Abidjan
action count
action union
action filter_type
action find
entity La Flèche
relation capital of
type second-level administrative country subdivision
action filter_type
action find
entity Abidjan
relation capital of
type second-level administrative country subdivision
['La Flèche', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Abidjan', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { ?p rdf:type ontology:second-level_administrative_country_subdivision . resource:La_Flèche property:capital_of ?p } UNION { resource:Abidjan property:capital_of ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision } }
[]
second-level administrative country subdivision
SYSTEM
2
Q639491 Q701349
(Q343,P1376,c(Q13220204)) (Q1515,P1376,c(Q13220204))
action count
action union
action filter_type
action find
entity Q343
relation P1376
type Q13220204
action filter_type
action find
entity Q1515
relation P1376
type Q13220204
[ANSWER]
['Q343', 'P1376', {'concept': 'Q13220204'}] ['Q1515', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { ?p rdf:type ontology:Q13220204 . resource:Q343 property:P1376 ?p } UNION { resource:Q1515 property:P1376 ?p . ?p rdf:type ontology:Q13220204 } }
Lagunes Region arrondissement of La Flèche
2
action count
action union
action filter_type
action find
entity La Flèche
relation capital of
type second-level administrative country subdivision
action filter_type
action find
entity Abidjan
relation capital of
type second-level administrative country subdivision
['La Flèche', 'capital of', {'concept': 'second-level administrative country subdivision'}] ['Abidjan', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { ?p rdf:type ontology:second-level_administrative_country_subdivision . resource:La_Flèche property:capital_of ?p } UNION { resource:Abidjan property:capital_of ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q811979 Q1048835 Q43229
USER
How many architectural structures are atmost 1 political territories and organizations named after ?
(c(Q1048835)|c(Q43229),P138,c(Q811979))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q811979
type Q1048835
action find_reverse_tuple_counts
relation P138
type Q811979
type Q43229
value 1
[[{'concept': 'Q1048835'}, {'concept': 'Q43229'}], 'P138', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?h <= 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?h ) WHERE { { ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q811979 . ?a property:P138 ?j } UNION { ?j rdf:type ontology:Q811979 . ?a rdf:type ontology:Q43229 . ?a property:P138 ?j } } GROUP BY ?j } }
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type architectural structure
type political territorial entity
action find_reverse_tuple_counts
relation named after
type architectural structure
type organization
value 1
[[{'concept': 'political territorial entity'}, {'concept': 'organization'}], 'named after', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?h <= 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?h ) WHERE { { ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:architectural_structure . ?a property:named_after ?j } UNION { ?j rdf:type ontology:architectural_structure . ?a rdf:type ontology:organization . ?a property:named_after ?j } } GROUP BY ?j } }
[]
architectural structure political territorial entity organization
SYSTEM
234
Q7418755 Q2083937 Q2071624 Q3390657 Q23907574 Q884433 Q16820 Q372141 Q17562765 Q164055 Q3389941 Q26451821 Q4868361 Q2465852 Q21834551 Q1781329 Q12061 Q2026601 Q631733 Q38888 Q114160 Q14935869 Q7929512 Q716848 Q2723969 Q26883247 Q10444878 Q2346256 Q908911 Q8546 Q27500602 Q13404 Q7430924 Q24445257 Q7162278 Q19274917 Q27014997 Q26825001 Q185600 Q24377198 Q7071305 Q779683 Q390243 Q1422975 Q3076267 Q648483 Q27014794 Q131183 Q17642754 Q72700 Q24067117 Q4250 Q1196667 Q1411047 Q108325 Q892168 Q7536373 Q24052608 Q254993 Q26252452 Q10549272 Q1621256 Q1248582 Q11481889 Q26885373 Q3397554 Q24340515 Q13218009 Q24499320 Q963509 Q3398926 Q4920798 Q16989961 Q1421991 Q10680668 Q27015068 Q526595 Q2006251 Q18394915 Q27070699 Q23655678 Q18752017 Q3077059 Q151510 Q15100601 Q26701445 Q15838952 Q16560 Q1062780 Q1196460 Q11087830 Q943856 Q189503 Q1608760 Q844426 Q1535247 Q2301532 Q11794512 Q458970 Q700887 Q26710939 Q15093782 Q23894156 Q516072 Q24003214 Q616334 Q23900618 Q1820520 Q4566667 Q2564462 Q1407236 Q24237074 Q2919893 Q274153 Q152783 Q7666363 Q1568693 Q334186 Q27070704 Q425754 Q2315019 Q26885214 Q2532668 Q24572884 Q24555705 Q21777873 Q16963684 Q24029433 Q14352349 Q3649219 Q24571923 Q23901268 Q701662 Q10543356 Q26954688 Q2099124 Q2416242 Q1130137 Q23933950 Q10537329 Q568577 Q179426 Q643520 Q4939768 Q15140170 Q10595668 Q1289370 Q1549893 Q12880480 Q271404 Q17831979 Q10602405 Q21891735 Q39374 Q24273546 Q10681017 Q26477027 Q1064141 Q23905061 Q26884934 Q23930082 Q276173 Q791408 Q26473355 Q21777231 Q2166466 Q785952 Q15132834 Q23637128 Q24013173 Q2577891 Q23907533 Q16964407 Q10562398 Q1750652 Q175055 Q7619466 Q23935160 Q1573359 Q778784 Q10508950 Q602694 Q23935699 Q24754427 Q1810764 Q23894667 Q24556649 Q51244 Q1126357 Q1110010 Q3390268 Q10673297 Q5747 Q1567693 Q9060456 Q525297 Q26698152 Q152974 Q16999453 Q2097879 Q14905549 Q18674701 Q23905111 Q24052640 Q614 Q2910246 Q3390224 Q174350 Q16966078 Q26813697 Q15135369 Q3783111 Q24500126 Q5620963 Q10601593 Q24261879 Q1235440 Q1550106 Q21959473 Q26954985 Q1966521 Q1327827 Q24050277 Q10680632 Q16965853 Q6936733 Q673526 Q1837926 Q23925229 Q23723997 Q15132823 Q700753 Q10712281 Q26452588
(c(Q1048835)|c(Q43229),P138,c(Q811979))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q811979
type Q1048835
action find_reverse_tuple_counts
relation P138
type Q811979
type Q43229
value 1
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q43229'}], 'P138', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?h <= 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?h ) WHERE { { ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q811979 . ?a property:P138 ?j } UNION { ?j rdf:type ontology:Q811979 . ?a rdf:type ontology:Q43229 . ?a property:P138 ?j } } GROUP BY ?j } }
Sankt Eriksplan Europaplein Piazza Cordusio place du Palais-Royal El Dragón mine Poppelsdorf Palace Strausberger Platz Älvsborg fortress Valli-Tarama Tiananmen Square place Louis-Pradel Mounana mine Bastnäs glory Jeffrey mine Gullmarsplan Tahrir Square Charax Ytterby mine Olympia Medborgarplatsen Mount Keith mine U.S. Bank Stadium Nybroplan place du Carrousel Aga mine Centralbadet Stettbrunnen Donáttornya Astroballe Gold quarry mine Poterne des Peupliers Schafteløkken Blue Bell mine (Baker) Penberthy Croft mine Bellerberg volcano Treasury Vault mine Låven island portico Maoniuping mine Nytorget Ausoniusstein place Charles-de-Gaulle place du Châtelet fontaine du Château d'eau Stockholm City Hall Fianel mine cabaret Eamont Bridge Les Feuillants Convent Clear Creek claim place Ampère Pont Louis-Philippe Náměstí Republiky chapel causeway Skorpion Zinc Narsaarsuk pegmatite Yakub Kolas Square former town hall of Paris 18th arrondissement Kristinehov pont de l'Alma Allchar deposit Nusamai Bridge Erzwies area Pont la Feuillée Centennial Eureka mine Mine Theresia Jote mine Pont Marie porte Montmartre Black Friars' Monastery of Stockholm Talnakh deposit Östermalmstorg Stockholm Telegraph Station Keystone mine place du Tertre Weesperplein Uchucchacua Serra Branca pegmatite Alacrán mine, Alacrán Cap Garonne mine Tsūjun Bridge University of Heidelberg Kipushi mine Scotia Talc mine Idrija mine palace forum Kintai Bridge Svornost mine Chungking Mansions place de la Concorde Hötorget Sergels torg Palais de Tokyo Waterlooplein Polkowice-Sieroszowice mine St. Pauli Landing Stages Theresienwiese Susanna mine Brommaplan Malyi Punkaruaiv mount Westfalenhallen Korshunovskoye iron-boron skarn deposit Vyšehrad Rappold mine Les Frigos Järntorget Beurs-World Trade Center weigh house Esquire no. 1 claim place Blanche water tower Alexanderplatz Södra Bankohuset Nieuwmarkt Abbey of Saint-Germain-des-Prés Pirquitas Ag-Sn deposit Omonoia Square Victoria Square Madoc area Plaza Italia, Buenos Aires Heftetjern pegmatite Centennial mine Heidelberger Platz Kuranakh mine Roua mines Hallveigarstaðir Cabot Square Jabel Harmun Alcaparrosa mine Stephansplatz Kanslihuset Tanohata mine Plaza San Martín Lubyanka Square Rudolfinum Harstigen mine Islandstorget Frankfurter Tor Ahoy Rotterdam place Vendôme Bollhuset Mackinaw Mine Nedre Manilla Mine Leonie Clara mine Duchess of Plaisance mansion Kolwezi Hvitfeldtsplatsen Norra Bankohuset Pooley Bridge Lindenhof Irhtem mine Stora Hornsberg Ojuela mine plaza Miserere Torrecillas mine Barika ore deposit El Guanaco ore deposit pavilion Batthyány tér Grand Reef mine Hohenzollernplatz Söyembikä Tower public bath Big and Small Somen's mill La Vendida mine Glücksstern mine, Gottlob hill place de la Bataille-de-Stalingrad N'Chwaning mines Mayak mine Lina gård Norrmalmstorg place de la République Stonington mansion Kawazu mine place de la Nation place de la Bastille Groens malmgård Odenplan Fuka mine Qaarsut place de Clichy Blue Lizard mine Lukkulaisvaara ultrabasic massif Admiralty Plaza de Mayo Collège de Navarre place de Valois Solna Centrum Palmyra Siglo Veinte mine Madrid Planetarium Piazzale Loreto Solongo boron deposit Karlsplatz Wessels mine place Denfert-Rochereau Huemul mine St Anne Cloister Cerchiara mine Jakobsberg mine place Bellecour Kikar HaShabbat place de Bretagne Tanco mine Qaqqaarsuk mine Tripuí Big and Small Pryssan Hanover Square Gurim anticline Gustaf Adolfs torg Nockeby torg Xitieshan mine Monastiraki Samson Pit Paratoo Copper mine Byrud Emerald mine place d'Italie Pont au Change Tashelginskoe formation Stockholm police house Ida Dome mine Munkbron Grand Châtelet Schuman roundabout Pollone mine Tsumeb mine Christian Hansson's mill Karlsplatz Valla torg Moctezuma mine
234
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type architectural structure
type political territorial entity
action find_reverse_tuple_counts
relation named after
type architectural structure
type organization
value 1
[[{'concept': 'political territorial entity'}, {'concept': 'organization'}], 'named after', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { FILTER ( ?h <= 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?h ) WHERE { { ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:architectural_structure . ?a property:named_after ?j } UNION { ?j rdf:type ontology:architectural_structure . ?a rdf:type ontology:organization . ?a property:named_after ?j } } GROUP BY ?j } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q7275 Q20667921
USER
How many states have approximately 1 french administrative division have their first city ?
(c(Q20667921),P1376,c(Q7275))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P1376 ?u . ?u rdf:type ontology:Q7275 . ?w rdf:type ontology:Q20667921 } GROUP BY ?u } . FILTER ( ?j = 1 ) }
action count
action approx
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 ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:capital_of ?u . ?u rdf:type ontology:state . ?w rdf:type ontology:type_of_french_administrative_division } GROUP BY ?u } . FILTER ( ?j = 1 ) }
[]
state type of french administrative division
SYSTEM
3
Q3456417 Q842091 Q112558
(c(Q20667921),P1376,c(Q7275))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P1376 ?u . ?u rdf:type ontology:Q7275 . ?w rdf:type ontology:Q20667921 } GROUP BY ?u } . FILTER ( ?j = 1 ) }
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
3
action count
action approx
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 ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:capital_of ?u . ?u rdf:type ontology:state . ?w rdf:type ontology:type_of_french_administrative_division } GROUP BY ?u } . FILTER ( ?j = 1 ) }
[]