Simple Question (Direct)
Simple Question
Q470060
P1435
Q811430
USER
Which construction gives the heritage status of Witten Central Station ?
(Q470060,P1435,c(Q811430))
action filter_type
action find
entity Q470060
relation P1435
type Q811430
['Q470060', 'P1435', {'concept': 'Q811430'}]
SELECT DISTINCT ?g WHERE { resource:Q470060 property:P1435 ?g . ?g rdf:type ontology:Q811430 }
Witten Central Station
action filter_type
action find
entity Witten Central Station
relation heritage status
type construction
['Witten Central Station', 'heritage status', {'concept': 'construction'}]
SELECT DISTINCT ?g WHERE { resource:Witten_Central_Station property:heritage_status ?g . ?g rdf:type ontology:construction }
[]
construction
Q811165
SYSTEM
architectural heritage monument
Q811165
(Q470060,P1435,c(Q811430))
action filter_type
action find
entity Q470060
relation P1435
type Q811430
[ANSWER] gives the heritage status of Witten Central Station
['Q470060', 'P1435', {'concept': 'Q811430'}]
SELECT DISTINCT ?g WHERE { resource:Q470060 property:P1435 ?g . ?g rdf:type ontology:Q811430 }
architectural heritage monument
Architectural heritage monument gives the heritage status of Witten Central Station
architectural heritage monument
action filter_type
action find
entity Witten Central Station
relation heritage status
type construction
['Witten Central Station', 'heritage status', {'concept': 'construction'}]
SELECT DISTINCT ?g WHERE { resource:Witten_Central_Station property:heritage_status ?g . ?g rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q470060
P112
Q4830453
USER
Which business enterprise was the founder of Witten Central Station ?
(Q470060,P112,c(Q4830453))
action filter_type
action find
entity Q470060
relation P112
type Q4830453
['Q470060', 'P112', {'concept': 'Q4830453'}]
SELECT DISTINCT ?q WHERE { resource:Q470060 property:P112 ?q . ?q rdf:type ontology:Q4830453 }
Witten Central Station
action filter_type
action find
entity Witten Central Station
relation founder
type business enterprise
['Witten Central Station', 'founder', {'concept': 'business enterprise'}]
SELECT DISTINCT ?q WHERE { resource:Witten_Central_Station property:founder ?q . ?q rdf:type ontology:business_enterprise }
[]
business enterprise
Q819819
SYSTEM
Bergisch-Märkische Railway Company
Q819819
(Q470060,P112,c(Q4830453))
action filter_type
action find
entity Q470060
relation P112
type Q4830453
[ANSWER] was the founder of Witten Central Station
['Q470060', 'P112', {'concept': 'Q4830453'}]
SELECT DISTINCT ?q WHERE { resource:Q470060 property:P112 ?q . ?q rdf:type ontology:Q4830453 }
Bergisch-Märkische Railway Company
Bergisch-Märkische Railway Company was the founder of Witten Central Station
Bergisch-Märkische Railway Company
action filter_type
action find
entity Witten Central Station
relation founder
type business enterprise
['Witten Central Station', 'founder', {'concept': 'business enterprise'}]
SELECT DISTINCT ?q WHERE { resource:Witten_Central_Station property:founder ?q . ?q rdf:type ontology:business_enterprise }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q470060
P361
Q1412403
USER
Which commuter rail is Witten Central Station a component of ?
(Q470060,P361,c(Q1412403))
action filter_type
action find
entity Q470060
relation P361
type Q1412403
['Q470060', 'P361', {'concept': 'Q1412403'}]
SELECT DISTINCT ?z WHERE { resource:Q470060 property:P361 ?z . ?z rdf:type ontology:Q1412403 }
Witten Central Station
action filter_type
action find
entity Witten Central Station
relation part of
type commuter rail
['Witten Central Station', 'part of', {'concept': 'commuter rail'}]
SELECT DISTINCT ?z WHERE { resource:Witten_Central_Station property:part_of ?z . ?z rdf:type ontology:commuter_rail }
[]
commuter rail
Q481509
SYSTEM
Rhine-Ruhr S-Bahn
Q481509
(Q470060,P361,c(Q1412403))
action filter_type
action find
entity Q470060
relation P361
type Q1412403
[ANSWER] is Witten Central Station a component of
['Q470060', 'P361', {'concept': 'Q1412403'}]
SELECT DISTINCT ?z WHERE { resource:Q470060 property:P361 ?z . ?z rdf:type ontology:Q1412403 }
Rhine-Ruhr S-Bahn
Rhine-Ruhr S-Bahn is Witten Central Station a component of
Rhine-Ruhr S-Bahn
action filter_type
action find
entity Witten Central Station
relation part of
type commuter rail
['Witten Central Station', 'part of', {'concept': 'commuter rail'}]
SELECT DISTINCT ?z WHERE { resource:Witten_Central_Station property:part_of ?z . ?z rdf:type ontology:commuter_rail }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12013414
Q1412403
USER
And what about Essen-Steele station?
(Q12013414,P361,c(Q1412403))
action filter_type
action find
entity Q12013414
relation P361
type Q1412403
['Q12013414', 'P361', {'concept': 'Q1412403'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1412403 . resource:Q12013414 property:P361 ?r }
Essen-Steele station
action filter_type
action find
entity Essen-Steele station
relation part of
type commuter rail
['Essen-Steele station', 'part of', {'concept': 'commuter rail'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:commuter_rail . resource:Essen-Steele_station property:part_of ?r }
[]
commuter rail
Q481509
SYSTEM
Rhine-Ruhr S-Bahn
Q481509
(Q12013414,P361,c(Q1412403))
action filter_type
action find
entity Q12013414
relation P361
type Q1412403
[ANSWER]
['Q12013414', 'P361', {'concept': 'Q1412403'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1412403 . resource:Q12013414 property:P361 ?r }
Rhine-Ruhr S-Bahn
Rhine-Ruhr S-Bahn
action filter_type
action find
entity Essen-Steele station
relation part of
type commuter rail
['Essen-Steele station', 'part of', {'concept': 'commuter rail'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:commuter_rail . resource:Essen-Steele_station property:part_of ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q223557 Q502895 Q55488
USER
How many railway stations have exactly 2 physical objects or people as their toponym ?
(c(Q55488),P138,c(Q223557)|c(Q502895))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q55488
type Q223557
action find_tuple_counts
relation P138
type Q55488
type Q502895
value 2
[{'concept': 'Q55488'}, 'P138', [{'concept': 'Q223557'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?x WHERE { VALUES ( ?c ) { ( ontology:Q223557 ) ( ontology:Q502895 ) } . ?t rdf:type ?c } GROUP BY ?x } . FILTER ( ?q = 2 ) }
action count
action equal
action union
action find_tuple_counts
relation named after
type railway station
type physical object
action find_tuple_counts
relation named after
type railway station
type common name
value 2
[{'concept': 'railway station'}, 'named after', [{'concept': 'physical object'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?x WHERE { VALUES ( ?c ) { ( ontology:physical_object ) ( ontology:common_name ) } . ?t rdf:type ?c } GROUP BY ?x } . FILTER ( ?q = 2 ) }
[]
physical object common name railway station
SYSTEM
2
Q1536969 Q1784003
(c(Q55488),P138,c(Q223557)|c(Q502895))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q55488
type Q223557
action find_tuple_counts
relation P138
type Q55488
type Q502895
value 2
[ANSWER]
[{'concept': 'Q55488'}, 'P138', [{'concept': 'Q223557'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?x WHERE { VALUES ( ?c ) { ( ontology:Q223557 ) ( ontology:Q502895 ) } . ?t rdf:type ?c } GROUP BY ?x } . FILTER ( ?q = 2 ) }
Goncourt Pierre et Marie Curie
2
action count
action equal
action union
action find_tuple_counts
relation named after
type railway station
type physical object
action find_tuple_counts
relation named after
type railway station
type common name
value 2
[{'concept': 'railway station'}, 'named after', [{'concept': 'physical object'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?x WHERE { VALUES ( ?c ) { ( ontology:physical_object ) ( ontology:common_name ) } . ?t rdf:type ?c } GROUP BY ?x } . FILTER ( ?q = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3963844
P137
Q4830453 Q2424752 Q811979
USER
Which business enterprises are the facility operator of approximately the same number of products and architectural structures as Società per le strade ferrate dell'Alta Italia ?
(c(Q2424752)|c(Q811979),P137,c(Q4830453))
action approx
action union
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q2424752
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q3963844
relation P137
type Q2424752
type Q811979
[[{'concept': 'Q2424752'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { { ?l property:P137 ?c . ?c rdf:type ontology:Q4830453 . ?l rdf:type ontology:Q2424752 } UNION { ?l property:P137 ?c . ?c rdf:type ontology:Q4830453 . ?l rdf:type ontology:Q811979 } } GROUP BY ?c } . FILTER ( ?g = ?b ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P137 resource:Q3963844 . { VALUES ( ?k ) { ( ontology:Q2424752 ) ( ontology:Q811979 ) } . ?h rdf:type ?k } } } }
Società per le strade ferrate dell'Alta Italia
action approx
action union
action find_reverse_tuple_counts
relation operator
type business enterprise
type product
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Società per le strade ferrate dell'Alta Italia
relation operator
type product
type architectural structure
[[{'concept': 'product'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { { ?l property:operator ?c . ?c rdf:type ontology:business_enterprise . ?l rdf:type ontology:product } UNION { ?l property:operator ?c . ?c rdf:type ontology:business_enterprise . ?l rdf:type ontology:architectural_structure } } GROUP BY ?c } . FILTER ( ?g = ?b ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:operator resource:Società_per_le_strade_ferrate_dell'Alta_Italia . { VALUES ( ?k ) { ( ontology:product ) ( ontology:architectural_structure ) } . ?h rdf:type ?k } } } }
[]
business enterprise product architectural structure
Q48989 Q66 Q52825
SYSTEM
ZDF, Boeing, ABB Group
Q2024025 Q904482 Q453211 Q1754870 Q3500373 Q7531314 Q1004068 Q2146117 Q318006 Q7417063 Q171985 Q321586 Q468385 Q666922 Q1997636 Q3055404 Q1016948 Q902025 Q839557 Q875494 Q3069734 Q1419444 Q1202329 Q1671384 Q1235460 Q1951373 Q1024380 Q15834870 Q119161 Q1973158 Q1770539 Q2407640 Q4834524 Q106158 Q896047 Q309867 Q1710037 Q2581356 Q1946820 Q2843047 Q181653 Q766647 Q1472738 Q1072021 Q648081 Q871174 Q359293 Q1202561 Q2294508 Q499967 Q17978 Q925995 Q564937 Q3045727 Q876017 Q1258373 Q15848474 Q1814208 Q1311594 Q2989867 Q679885 Q1162114 Q461289 Q2989926 Q837860 Q917988 Q1239275 Q1028212 Q3633141 Q2113906 Q1631655 Q2407391 Q3502873 Q2320362 Q451124 Q634227 Q125943 Q464339 Q1670669 Q3347525 Q52825 Q1327441 Q1152084 Q2537722 Q4073726 Q1069379 Q372974 Q1378919 Q826750 Q1433790 Q649618 Q3963835 Q12859175 Q7674943 Q1028205 Q23011717 Q536878 Q2146121 Q1544319 Q1069381 Q498404 Q2069121 Q1539648 Q2647999 Q12591271 Q1071790 Q656554 Q1130022 Q1061817 Q2208728 Q1585967 Q1354909 Q1124796 Q1779703 Q481535 Q117215 Q1353871 Q1544615 Q633519 Q567000 Q6482976 Q687175 Q168082 Q498553 Q277030 Q1212730 Q1301181 Q23689706 Q2962329 Q2136516 Q2393003 Q3963844 Q2261937 Q3963848 Q5998584 Q298969 Q943113 Q876720 Q2989938 Q15859657 Q24233938 Q781593 Q1116993 Q663120 Q2989936 Q1070560 Q746503 Q745700 Q2990397 Q6442235 Q2990395 Q682863 Q678188 Q465567 Q328840 Q1190006 Q450071 Q918747 Q48989 Q262673 Q1550653 Q1418307 Q881184 Q1135367 Q408507 Q1536338 Q1964944 Q842170 Q190795 Q1982817 Q381100 Q1071804 Q7885982 Q685792 Q1544279 Q1766623 Q1180332 Q13013270 Q54718 Q6144562 Q18651250 Q693105 Q541879 Q1245875 Q442450 Q444183 Q1272318 Q1093332 Q1016648 Q2645718 Q7981546 Q846655 Q3406209 Q477312 Q20394 Q638715 Q1276275 Q12374454 Q125908 Q997052 Q945198 Q1394642 Q1054033 Q663187 Q1529921 Q1135434 Q1479375 Q1750203 Q193701 Q1672471 Q3743736 Q1371464 Q1053974 Q1734331 Q1982888 Q26128885 Q610141 Q175292 Q1183933 Q3997890 Q1397107 Q1121125 Q489565 Q809087 Q1868748 Q504423 Q3737187 Q1197895 Q2876592 Q727176 Q1277782 Q201850 Q3024830 Q1932006 Q917079 Q66 Q870257 Q1410337 Q5159452 Q683873
(c(Q2424752)|c(Q811979),P137,c(Q4830453))
action approx
action union
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q2424752
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q3963844
relation P137
type Q2424752
type Q811979
[ANSWERS] are the facility operator of approximately the same number of products and architectural structures as Società per le strade ferrate dell'Alta Italia
[[{'concept': 'Q2424752'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { { ?l property:P137 ?c . ?c rdf:type ontology:Q4830453 . ?l rdf:type ontology:Q2424752 } UNION { ?l property:P137 ?c . ?c rdf:type ontology:Q4830453 . ?l rdf:type ontology:Q811979 } } GROUP BY ?c } . FILTER ( ?g = ?b ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P137 resource:Q3963844 . { VALUES ( ?k ) { ( ontology:Q2424752 ) ( ontology:Q811979 ) } . ?h rdf:type ?k } } } }
WestfalenBahn Brecon and Merthyr Railway BC Rail Stadtwerke Verkehrsgesellschaft Frankfurt am Main Washington State Ferries St Vincent's Health Australia Bulgarian National Television Rete Adriatica Grand Duchy of Oldenburg State Railways Sandwell and West Birmingham Hospitals NHS Trust Massachusetts Bay Transportation Authority Reichspost Blue Funnel Line Matterhorn Gotthard Bahn Nordbahn Eisenbahngesellschaft St. Louis Southwestern Railway Burry Port and Gwendraeth Valley Railway Braunschweigische Landes-Eisenbahn-Gesellschaft Rotterdamse Elektrische Tram Palatinate Railway Ferrocarriles Nacionales de México First Great Western Link Deutsche Eisenbahn-Betriebsgesellschaft Interstate Railroad Alaska Railroad Chemin de fer de Paris à Orléans et du Midi Canada Steamship Lines Meridian Schweizerische Centralbahn Neath and Brecon Railway Nortraship Texas Mexican Railway BAE Systems Inc. Standard & Poor's Grand Duchy of Mecklenburg Friedrich-Franz Railway Arianespace Süddeutsche Eisenbahn-Gesellschaft Arriva Personenvervoer Nederland Moore-McCormack AT&T Corporation Deutsche Bundespost Metrolink New York, New Haven and Hartford Railroad Chicago and North Western Transportation Company Nashville, Chattanooga and St. Louis Railway Československé státní dráhy Soo Line Railroad Deutsche Funkturm Slovenské železnice Türkiye Cumhuriyeti Devlet Demiryolları Toronto Transit Commission Missouri–Kansas–Texas Railroad Royal Bavarian State Railways E.ON UK Israel Aerospace Industries Southern St. Gallen–Gais–Appenzell–Altstätten-Bahn Metra Eisenbahnen und Verkehrsbetriebe Elbe-Weser Compagnie de chemins de fer départementaux BLS Lötschbergbahn Victorian Railways Grand Duchy of Baden State Railway Société anonyme luxembourgeoise des chemins de fer et minières Prince-Henri Reading Company Bristol and Exeter Railway Western Pacific Railroad Cambrian Railways East Indian Railway Company Providence and Worcester Railroad STIB/MIVB Teutoburger Wald-Eisenbahn Telepace St. Louis–San Francisco Railway Royal Württemberg State Railways Beechcraft Long Island Rail Road Royal Saxon State Railways K.k. Südliche Staatsbahn OC Transpo ABB Group Oktyabrskaya Railway DB Regio NRW WSW Wuppertaler Stadtwerke Aeroexpress Chemins de Fer de la Corse Kaiser Ferdinands-Nordbahn Eutin-Lübecker Eisenbahn Chemins de fer d'Alsace et de Lorraine Halle-Hettstedter Eisenbahn-Gesellschaft Rádio e Televisão de Portugal Società per le Strade Ferrate Meridionali Network SouthEast Taff Vale Railway Cambria and Indiana Railroad DAKK Dél-alföldi Közlekedési Központ Midland and South Western Junction Railway Rete Mediterranea Great North of Scotland Railway Chemins de fer du Jura bernois Chicago, Rock Island and Pacific Railroad Pennsylvania-Reading Seashore Lines Gotthardbahn Allan Line Royal Mail Steamers Daegu Metropolitan Transit Corporation Chicago, Burlington and Quincy Railroad Carnival Cruise Lines London and South Western Railway Chandris Line SWB Bus und Bahn Rio Grande Southern Railroad Erixx Wabash Railroad Lancashire and Yorkshire Railway Harzer Schmalspurbahnen Transpole Virginian Railway Green Mountain Railroad Córas Iompair Éireann Chiltern Railways Lancashire, Derbyshire and East Coast Railway Deutsche Bundesbahn Hungarian State Railways New Jersey Transit Imperial Royal Austrian State Railways Mährische Grenzbahn London and Birmingham Railway Bosnian-Herzegowinian State Railways Chemin de fer Arnaud Reederei Norden-Frisia Autoroutes Paris-Rhin-Rhône Società per le strade ferrate dell'Alta Italia Seaboard System Railroad Società per le Strade Ferrate Romane Compagnie du chemin de fer de Paris à Orléans Imperial Royal Privileged Austrian State Railway Company Chicago and Eastern Illinois Railroad Via Rail Compagnie des chemins de fer de la Vendée Kleinbahn-Gesellschaft Greifswald–Jarmen South African Railways and Harbours Administration Australian National Railways Commission Commonwealth Railways Southern Railway Chemins de fer des Charentes Chesapeake and Ohio Railway Volánbusz Princess Cruises Compañía de los Ferrocarriles de Madrid a Zaragoza y Alicante Incheon International Airport Corporation Compañía de los caminos de hierro del Norte DELAG Vereinigte Schweizerbahnen American Line Visa Inc. Denver and Rio Grande Western Railroad Schweizerische Nordostbahn Louisville and Nashville Railroad ZDF Seaboard Coast Line Railroad Soviet Railways Frankfurt-Königsteiner Eisenbahn Imperial Railways in Alsace-Lorraine Corris Railway Aircraft Transport and Travel Wädenswil-Einsiedeln-Bahn Bundesbahnen Österreich Wisconsin Central Ltd. Roscosmos State Corporation New Orleans and Northeastern Railroad Dopravní podnik hlavního města Prahy Chicago, Milwaukee, St. Paul and Pacific Railroad Union Railroad Austrian Southern Railway Great Eastern Railway TriMet MÁV START Zrt. The Transport Co. Ltd. Yle, the Finnish Broadcasting Company The Great Southern of Spain Railway Company Limited Shanghai Shentong Metro Group Co., Ltd. Highland Railway Chemins de fer du Nord Missouri Pacific Railroad Florida East Coast Railway Erie Lackawanna Railway Great Northern Railway Illinois Central Railroad Burlington Northern Railroad Grand Trunk Railway Wellington and Manawatu Railway Company Israel Railways Llanberis Lake Railway United States Lines Seoul Metro Boston and Maine Corporation Euregio Verkehrsschienennetz S-Bahn Berlin GmbH Metro-North Railroad Brünn-Rossitzer Eisenbahn Quebecair Furness Railway Central Trains Chemins de fer de l'Est South Eastern Railway Northern Pacific Railway MTR Corporation North British Railway SpaceX Lambourn Valley Railway Ferrovie Elettriche Biellesi New York Central Railroad Central Railroad of New Jersey Wisconsin Central Railway New South Wales Government Railways Tanganyika Railway Société générale des chemins de fer économiques Seaboard Air Line Railroad Delaware, Lackawanna and Western Railroad Caledonian Railway Farrell Lines Chemins de fer Orientaux London, Brighton and South Coast Railway Barry Railway Company Lombardisch-venetianische Eisenbahnen Western Maryland Railway Dobroflot Pennsylvania Railroad B-Cargo Radio and Television Slovakia East Coast Kansas City Southern Railway Deutsche Eisenbahn-Gesellschaft Midland Railway Norfolk and Western Railway Boeing Jura–Simplon Railway Ffestiniog Railway Cone Health Prussian state railways
ZDF, Boeing and ABB Group are the facility operator of approximately the same number of products and architectural structures as Società per le strade ferrate dell'Alta Italia
ZDF Boeing ABB Group
action approx
action union
action find_reverse_tuple_counts
relation operator
type business enterprise
type product
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Società per le strade ferrate dell'Alta Italia
relation operator
type product
type architectural structure
[[{'concept': 'product'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { { ?l property:operator ?c . ?c rdf:type ontology:business_enterprise . ?l rdf:type ontology:product } UNION { ?l property:operator ?c . ?c rdf:type ontology:business_enterprise . ?l rdf:type ontology:architectural_structure } } GROUP BY ?c } . FILTER ( ?g = ?b ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:operator resource:Società_per_le_strade_ferrate_dell'Alta_Italia . { VALUES ( ?k ) { ( ontology:product ) ( ontology:architectural_structure ) } . ?h rdf:type ?k } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q541879
P137
Q4830453 Q2424752 Q811979
USER
And what about Chemins de fer du Nord?
(c(Q2424752)|c(Q811979),P137,c(Q4830453))
action approx
action union
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q2424752
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q541879
relation P137
type Q2424752
type Q811979
[[{'concept': 'Q2424752'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q2424752 ) ( ontology:Q811979 ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P137 resource:Q541879 . { { ?d rdf:type ontology:Q811979 } UNION { ?d rdf:type ontology:Q2424752 } } } } . FILTER ( ?m = ?u ) }
Chemins de fer du Nord
action approx
action union
action find_reverse_tuple_counts
relation operator
type business enterprise
type product
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Chemins de fer du Nord
relation operator
type product
type architectural structure
[[{'concept': 'product'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:product ) ( ontology:architectural_structure ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:operator resource:Chemins_de_fer_du_Nord . { { ?d rdf:type ontology:architectural_structure } UNION { ?d rdf:type ontology:product } } } } . FILTER ( ?m = ?u ) }
[]
business enterprise product architectural structure
Q48989 Q66 Q52825
SYSTEM
ZDF, Boeing, ABB Group
Q2024025 Q904482 Q453211 Q1754870 Q3500373 Q7531314 Q1004068 Q2146117 Q318006 Q7417063 Q171985 Q321586 Q468385 Q666922 Q1997636 Q3055404 Q1016948 Q902025 Q839557 Q875494 Q3069734 Q1419444 Q1202329 Q1671384 Q1235460 Q1951373 Q1024380 Q15834870 Q119161 Q1973158 Q1770539 Q2407640 Q4834524 Q106158 Q896047 Q309867 Q1710037 Q2581356 Q1946820 Q2843047 Q181653 Q766647 Q1472738 Q1072021 Q648081 Q871174 Q359293 Q1202561 Q2294508 Q499967 Q17978 Q925995 Q564937 Q3045727 Q876017 Q1258373 Q15848474 Q1814208 Q1311594 Q2989867 Q679885 Q1162114 Q461289 Q2989926 Q837860 Q917988 Q1239275 Q1028212 Q3633141 Q2113906 Q1631655 Q2407391 Q3502873 Q2320362 Q451124 Q634227 Q125943 Q464339 Q1670669 Q3347525 Q52825 Q1327441 Q1152084 Q2537722 Q4073726 Q1069379 Q372974 Q1378919 Q826750 Q1433790 Q649618 Q3963835 Q12859175 Q7674943 Q1028205 Q23011717 Q536878 Q2146121 Q1544319 Q1069381 Q498404 Q2069121 Q1539648 Q2647999 Q12591271 Q1071790 Q656554 Q1130022 Q1061817 Q2208728 Q1585967 Q1354909 Q1124796 Q1779703 Q481535 Q117215 Q1353871 Q1544615 Q633519 Q567000 Q6482976 Q687175 Q168082 Q498553 Q277030 Q1212730 Q1301181 Q23689706 Q2962329 Q2136516 Q2393003 Q3963844 Q2261937 Q3963848 Q5998584 Q298969 Q943113 Q876720 Q2989938 Q15859657 Q24233938 Q781593 Q1116993 Q663120 Q2989936 Q1070560 Q746503 Q745700 Q2990397 Q6442235 Q2990395 Q682863 Q678188 Q465567 Q328840 Q1190006 Q450071 Q918747 Q48989 Q262673 Q1550653 Q1418307 Q881184 Q1135367 Q408507 Q1536338 Q1964944 Q842170 Q190795 Q1982817 Q381100 Q1071804 Q7885982 Q685792 Q1544279 Q1766623 Q1180332 Q13013270 Q54718 Q6144562 Q18651250 Q693105 Q541879 Q1245875 Q442450 Q444183 Q1272318 Q1093332 Q1016648 Q2645718 Q7981546 Q846655 Q3406209 Q477312 Q20394 Q638715 Q1276275 Q12374454 Q125908 Q997052 Q945198 Q1394642 Q1054033 Q663187 Q1529921 Q1135434 Q1479375 Q1750203 Q193701 Q1672471 Q3743736 Q1371464 Q1053974 Q1734331 Q1982888 Q26128885 Q610141 Q175292 Q1183933 Q3997890 Q1397107 Q1121125 Q489565 Q809087 Q1868748 Q504423 Q3737187 Q1197895 Q2876592 Q727176 Q1277782 Q201850 Q3024830 Q1932006 Q917079 Q66 Q870257 Q1410337 Q5159452 Q683873
(c(Q2424752)|c(Q811979),P137,c(Q4830453))
action approx
action union
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q2424752
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q541879
relation P137
type Q2424752
type Q811979
[ANSWERS]
[[{'concept': 'Q2424752'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q2424752 ) ( ontology:Q811979 ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P137 resource:Q541879 . { { ?d rdf:type ontology:Q811979 } UNION { ?d rdf:type ontology:Q2424752 } } } } . FILTER ( ?m = ?u ) }
WestfalenBahn Brecon and Merthyr Railway BC Rail Stadtwerke Verkehrsgesellschaft Frankfurt am Main Washington State Ferries St Vincent's Health Australia Bulgarian National Television Rete Adriatica Grand Duchy of Oldenburg State Railways Sandwell and West Birmingham Hospitals NHS Trust Massachusetts Bay Transportation Authority Reichspost Blue Funnel Line Matterhorn Gotthard Bahn Nordbahn Eisenbahngesellschaft St. Louis Southwestern Railway Burry Port and Gwendraeth Valley Railway Braunschweigische Landes-Eisenbahn-Gesellschaft Rotterdamse Elektrische Tram Palatinate Railway Ferrocarriles Nacionales de México First Great Western Link Deutsche Eisenbahn-Betriebsgesellschaft Interstate Railroad Alaska Railroad Chemin de fer de Paris à Orléans et du Midi Canada Steamship Lines Meridian Schweizerische Centralbahn Neath and Brecon Railway Nortraship Texas Mexican Railway BAE Systems Inc. Standard & Poor's Grand Duchy of Mecklenburg Friedrich-Franz Railway Arianespace Süddeutsche Eisenbahn-Gesellschaft Arriva Personenvervoer Nederland Moore-McCormack AT&T Corporation Deutsche Bundespost Metrolink New York, New Haven and Hartford Railroad Chicago and North Western Transportation Company Nashville, Chattanooga and St. Louis Railway Československé státní dráhy Soo Line Railroad Deutsche Funkturm Slovenské železnice Türkiye Cumhuriyeti Devlet Demiryolları Toronto Transit Commission Missouri–Kansas–Texas Railroad Royal Bavarian State Railways E.ON UK Israel Aerospace Industries Southern St. Gallen–Gais–Appenzell–Altstätten-Bahn Metra Eisenbahnen und Verkehrsbetriebe Elbe-Weser Compagnie de chemins de fer départementaux BLS Lötschbergbahn Victorian Railways Grand Duchy of Baden State Railway Société anonyme luxembourgeoise des chemins de fer et minières Prince-Henri Reading Company Bristol and Exeter Railway Western Pacific Railroad Cambrian Railways East Indian Railway Company Providence and Worcester Railroad STIB/MIVB Teutoburger Wald-Eisenbahn Telepace St. Louis–San Francisco Railway Royal Württemberg State Railways Beechcraft Long Island Rail Road Royal Saxon State Railways K.k. Südliche Staatsbahn OC Transpo ABB Group Oktyabrskaya Railway DB Regio NRW WSW Wuppertaler Stadtwerke Aeroexpress Chemins de Fer de la Corse Kaiser Ferdinands-Nordbahn Eutin-Lübecker Eisenbahn Chemins de fer d'Alsace et de Lorraine Halle-Hettstedter Eisenbahn-Gesellschaft Rádio e Televisão de Portugal Società per le Strade Ferrate Meridionali Network SouthEast Taff Vale Railway Cambria and Indiana Railroad DAKK Dél-alföldi Közlekedési Központ Midland and South Western Junction Railway Rete Mediterranea Great North of Scotland Railway Chemins de fer du Jura bernois Chicago, Rock Island and Pacific Railroad Pennsylvania-Reading Seashore Lines Gotthardbahn Allan Line Royal Mail Steamers Daegu Metropolitan Transit Corporation Chicago, Burlington and Quincy Railroad Carnival Cruise Lines London and South Western Railway Chandris Line SWB Bus und Bahn Rio Grande Southern Railroad Erixx Wabash Railroad Lancashire and Yorkshire Railway Harzer Schmalspurbahnen Transpole Virginian Railway Green Mountain Railroad Córas Iompair Éireann Chiltern Railways Lancashire, Derbyshire and East Coast Railway Deutsche Bundesbahn Hungarian State Railways New Jersey Transit Imperial Royal Austrian State Railways Mährische Grenzbahn London and Birmingham Railway Bosnian-Herzegowinian State Railways Chemin de fer Arnaud Reederei Norden-Frisia Autoroutes Paris-Rhin-Rhône Società per le strade ferrate dell'Alta Italia Seaboard System Railroad Società per le Strade Ferrate Romane Compagnie du chemin de fer de Paris à Orléans Imperial Royal Privileged Austrian State Railway Company Chicago and Eastern Illinois Railroad Via Rail Compagnie des chemins de fer de la Vendée Kleinbahn-Gesellschaft Greifswald–Jarmen South African Railways and Harbours Administration Australian National Railways Commission Commonwealth Railways Southern Railway Chemins de fer des Charentes Chesapeake and Ohio Railway Volánbusz Princess Cruises Compañía de los Ferrocarriles de Madrid a Zaragoza y Alicante Incheon International Airport Corporation Compañía de los caminos de hierro del Norte DELAG Vereinigte Schweizerbahnen American Line Visa Inc. Denver and Rio Grande Western Railroad Schweizerische Nordostbahn Louisville and Nashville Railroad ZDF Seaboard Coast Line Railroad Soviet Railways Frankfurt-Königsteiner Eisenbahn Imperial Railways in Alsace-Lorraine Corris Railway Aircraft Transport and Travel Wädenswil-Einsiedeln-Bahn Bundesbahnen Österreich Wisconsin Central Ltd. Roscosmos State Corporation New Orleans and Northeastern Railroad Dopravní podnik hlavního města Prahy Chicago, Milwaukee, St. Paul and Pacific Railroad Union Railroad Austrian Southern Railway Great Eastern Railway TriMet MÁV START Zrt. The Transport Co. Ltd. Yle, the Finnish Broadcasting Company The Great Southern of Spain Railway Company Limited Shanghai Shentong Metro Group Co., Ltd. Highland Railway Chemins de fer du Nord Missouri Pacific Railroad Florida East Coast Railway Erie Lackawanna Railway Great Northern Railway Illinois Central Railroad Burlington Northern Railroad Grand Trunk Railway Wellington and Manawatu Railway Company Israel Railways Llanberis Lake Railway United States Lines Seoul Metro Boston and Maine Corporation Euregio Verkehrsschienennetz S-Bahn Berlin GmbH Metro-North Railroad Brünn-Rossitzer Eisenbahn Quebecair Furness Railway Central Trains Chemins de fer de l'Est South Eastern Railway Northern Pacific Railway MTR Corporation North British Railway SpaceX Lambourn Valley Railway Ferrovie Elettriche Biellesi New York Central Railroad Central Railroad of New Jersey Wisconsin Central Railway New South Wales Government Railways Tanganyika Railway Société générale des chemins de fer économiques Seaboard Air Line Railroad Delaware, Lackawanna and Western Railroad Caledonian Railway Farrell Lines Chemins de fer Orientaux London, Brighton and South Coast Railway Barry Railway Company Lombardisch-venetianische Eisenbahnen Western Maryland Railway Dobroflot Pennsylvania Railroad B-Cargo Radio and Television Slovakia East Coast Kansas City Southern Railway Deutsche Eisenbahn-Gesellschaft Midland Railway Norfolk and Western Railway Boeing Jura–Simplon Railway Ffestiniog Railway Cone Health Prussian state railways
ZDF Boeing ABB Group
action approx
action union
action find_reverse_tuple_counts
relation operator
type business enterprise
type product
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Chemins de fer du Nord
relation operator
type product
type architectural structure
[[{'concept': 'product'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:product ) ( ontology:architectural_structure ) } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:operator resource:Chemins_de_fer_du_Nord . { { ?d rdf:type ontology:architectural_structure } UNION { ?d rdf:type ontology:product } } } } . FILTER ( ?m = ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q7201608
P1408
Q486972 Q4830453
USER
How many human settlements are less number of business enterprises licensed to broadcast to than Plantation Key ?
(c(Q4830453),P1408,c(Q486972))
action count
action less
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
action count
action filter_type
action find_reverse
entity Q7201608
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?w ) WHERE { ?b rdf:type ontology:Q486972 . ?v rdf:type ontology:Q4830453 . ?v property:P1408 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P1408 resource:Q7201608 . ?e rdf:type ontology:Q4830453 } } . FILTER ( ?w < ?c ) }
Plantation Key
action count
action less
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
action count
action filter_type
action find_reverse
entity Plantation Key
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?w ) WHERE { ?b rdf:type ontology:human_settlement . ?v rdf:type ontology:business_enterprise . ?v property:licensed_to_broadcast_to ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:licensed_to_broadcast_to resource:Plantation_Key . ?e rdf:type ontology:business_enterprise } } . FILTER ( ?w < ?c ) }
[]
human settlement business enterprise
SYSTEM
200
Q2228038 Q1006574 Q851806 Q675521 Q1085227 Q2131187 Q955773 Q1376378 Q2375262 Q2321558 Q3155671 Q1876120 Q2892388 Q988827 Q2797405 Q3470764 Q249224 Q859187 Q2402910 Q2443721 Q2088307 Q1613686 Q3460058 Q1413686 Q2362234 Q1375929 Q6686011 Q2429075 Q1928157 Q754578 Q2428769 Q3472295 Q4570781 Q204271 Q53077 Q3344111 Q970773 Q1393019 Q1022776 Q1573469 Q774319 Q3460450 Q1898562 Q3476984 Q1942119 Q2443522 Q2271504 Q3461320 Q1510586 Q755020 Q1636815 Q938100 Q5582373 Q498773 Q2706524 Q3460208 Q1183709 Q1785340 Q3452472 Q1376943 Q5645655 Q985486 Q3306176 Q630260 Q79546 Q2459183 Q2638406 Q2588367 Q3459304 Q3612349 Q690991 Q2429119 Q744198 Q1734955 Q5680397 Q650694 Q2277678 Q31487 Q898109 Q2740714 Q1377121 Q2040930 Q7987027 Q254221 Q520499 Q2005156 Q2101741 Q2272266 Q1376974 Q7570941 Q3462028 Q984542 Q2320197 Q1920378 Q638180 Q282266 Q2100117 Q2323152 Q2150258 Q1515408 Q2638417 Q1847338 Q2514220 Q1514432 Q1086841 Q981581 Q3313526 Q673772 Q1375703 Q1012971 Q2016119 Q2570502 Q7991947 Q2443480 Q1959298 Q630253 Q3458617 Q2453592 Q1484530 Q2891920 Q2126669 Q1024100 Q3056724 Q2025717 Q3267916 Q5091036 Q931331 Q1028196 Q3130627 Q949709 Q1535079 Q2093034 Q1866955 Q1943133 Q2377992 Q1013162 Q1376559 Q2271711 Q2443708 Q2461671 Q19818341 Q3294011 Q3473949 Q2230206 Q2637332 Q532459 Q1845421 Q1835270 Q542794 Q1012668 Q2375832 Q589958 Q1183907 Q423505 Q3052790 Q2361035 Q1513007 Q2925171 Q3459533 Q2375999 Q2033190 Q1560792 Q1845155 Q2425873 Q969173 Q1131479 Q2877571 Q1089064 Q1374602 Q755880 Q868666 Q2165777 Q1368039 Q2392574 Q5430744 Q756573 Q1006586 Q2650031 Q2429053 Q584451 Q1850538 Q628771 Q2356400 Q1787293 Q2573670 Q11703248 Q2049822 Q1374369 Q513757 Q880153 Q2189258 Q2745135 Q384692 Q1261675 Q2691345 Q1376781 Q3460473 Q2111166 Q2796218 Q2656942
(c(Q4830453),P1408,c(Q486972))
action count
action less
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
action count
action filter_type
action find_reverse
entity Q7201608
relation P1408
type Q4830453
[ANSWER]
[{'concept': 'Q4830453'}, 'P1408', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?w ) WHERE { ?b rdf:type ontology:Q486972 . ?v rdf:type ontology:Q4830453 . ?v property:P1408 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P1408 resource:Q7201608 . ?e rdf:type ontology:Q4830453 } } . FILTER ( ?w < ?c ) }
Norco Carmichael Beverly Hills Arlington Villas Galliano Lonepine Collinsville Mayer Spring Hill Reserve Oak View Houghton Lake Tonopah Chualar Navarre Campo Big Pine Key Cutten Gifford Bainbridge Hernando Westhampton Waianae Valhalla Woodbridge Loudonville Miramar Beach Sterling Grasonville Volcano Miamitown Lincoln University San Luis Potosí Saltillo North Creek Manahawkin Fair Oaks Port Charlotte Hamilton City Wakefield-Peacedale Highland White River Junction Plainview Fort Bridger Leisure City Middleburg Hampton Bays Opportunity Pikesville Orcutt Indian Springs Goochland Montauk Sans Souci Manorville Oliver Lázaro Cárdenas Irondequoit Ettrick Deltaville Pahrump Planada Hebbronville Haines Forestbrook Hanalei Eleele Lake Ronkonkoma University, Mississippi East Los Angeles Orlo Vista Kaunakakai Kasilof Marble Lexington Park Angwin Kraków Brandon Oracle Bassett Hemlock West Yarmouth Schladming Cypress Quarters Rosamond Holualoa Aloha Lakeside Southport Center Moriches Paradise Lacombe Mendocino New Market North Fort Myers Garyville Moapa Valley Seffner Silverdale Kalaheo Kealakekua Concow Fall City North Cape May Ranchitos Las Lomas Homeland Park Bon Air Mechanicsville Lahaina Wahiawa Tice Wheaton Goulds Strasburg Garden City Carnelian Bay Watertown Kaneohe Cannonsburg Holiday Sun City West Syosset Fairview Lanai City Chenango Bridge Dolan Springs Cambria Lithia Springs Fruit Cove Golden Valley, Arizona Pine Island Center Wilberforce Mojave Newburg Tuba City Stony Brook Colonial Heights San Carlos Park Hobe Sound Mesilla Park Pine Hills Heathsville Bridgeport Monte Rio Kailua Pine Castle Hope Valley Big Bear City Window Rock Estero Pollock Pines Levittown Aiea Indian River Kendall Dishman Bridgehampton Sunriver Jensen Beach Freedom Vail Cypress Gardens Makawao Mirando City Beaver Springs Calverton Blackwood Forest Maugansville Hershey Blountville Esparto Port Sulphur Fairview, Erie County, Pennsylvania Ocean Pines Sun City Narragansett Pier Bithlo Bethesda Tse Bonito Charlotte Harbor Empire Santa Ynez Medford Riverhead (CDP), New York Punta Rassa Fieldale Sun Valley Black Canyon City St. Andrews Cordes Lakes Bay Shore Meridianville Socastee Fairview Beach Endwell Evergreen El Rio Mableton
200
action count
action less
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
action count
action filter_type
action find_reverse
entity Plantation Key
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?w ) WHERE { ?b rdf:type ontology:human_settlement . ?v rdf:type ontology:business_enterprise . ?v property:licensed_to_broadcast_to ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:licensed_to_broadcast_to resource:Plantation_Key . ?e rdf:type ontology:business_enterprise } } . FILTER ( ?w < ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P84
Q4830453 Q811979 Q483110
USER
How many business enterprises architectured exactly 4 architectural structures and stadia ?
(c(Q811979)|c(Q483110),P84,c(Q4830453))
action count
action equal
action union
action find_reverse_tuple_counts
relation P84
type Q4830453
type Q811979
action find_reverse_tuple_counts
relation P84
type Q4830453
type Q483110
value 4
[[{'concept': 'Q811979'}, {'concept': 'Q483110'}], 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?r WHERE { { ?p property:P84 ?r . ?p rdf:type ontology:Q811979 . ?r rdf:type ontology:Q4830453 } UNION { ?p property:P84 ?r . ?r rdf:type ontology:Q4830453 . ?p rdf:type ontology:Q483110 } } GROUP BY ?r } . FILTER ( ?m = 4 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation architect
type business enterprise
type architectural structure
action find_reverse_tuple_counts
relation architect
type business enterprise
type stadium
value 4
[[{'concept': 'architectural structure'}, {'concept': 'stadium'}], 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?r WHERE { { ?p property:architect ?r . ?p rdf:type ontology:architectural_structure . ?r rdf:type ontology:business_enterprise } UNION { ?p property:architect ?r . ?r rdf:type ontology:business_enterprise . ?p rdf:type ontology:stadium } } GROUP BY ?r } . FILTER ( ?m = 4 ) }
[]
business enterprise architectural structure stadium
SYSTEM
5
Q7105755 Q7260907 Q6623279 Q7369731 Q566384
(c(Q811979)|c(Q483110),P84,c(Q4830453))
action count
action equal
action union
action find_reverse_tuple_counts
relation P84
type Q4830453
type Q811979
action find_reverse_tuple_counts
relation P84
type Q4830453
type Q483110
value 4
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q483110'}], 'P84', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?r WHERE { { ?p property:P84 ?r . ?p rdf:type ontology:Q811979 . ?r rdf:type ontology:Q4830453 } UNION { ?p property:P84 ?r . ?r rdf:type ontology:Q4830453 . ?p rdf:type ontology:Q483110 } } GROUP BY ?r } . FILTER ( ?m = 4 ) }
Osborn Engineering Purcell & Elmslie Pei Cobb Freed & Partners Ross and Macdonald Gerkan, Marg and Partners
5
action count
action equal
action union
action find_reverse_tuple_counts
relation architect
type business enterprise
type architectural structure
action find_reverse_tuple_counts
relation architect
type business enterprise
type stadium
value 4
[[{'concept': 'architectural structure'}, {'concept': 'stadium'}], 'architect', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) ?r WHERE { { ?p property:architect ?r . ?p rdf:type ontology:architectural_structure . ?r rdf:type ontology:business_enterprise } UNION { ?p property:architect ?r . ?r rdf:type ontology:business_enterprise . ?p rdf:type ontology:stadium } } GROUP BY ?r } . FILTER ( ?m = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7309916 Q470060
P17
Q1048835
USER
Which political territories are Witten Central Station or Reichsgau Wien present in ?
OR((Q470060,P17,c(Q1048835)), (Q7309916,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q470060
relation P17
action find
entity Q7309916
relation P17
type Q1048835
{'OR': [['Q470060', 'P17', {'concept': 'Q1048835'}], ['Q7309916', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q470060 property:P17 ?p } UNION { resource:Q7309916 property:P17 ?p } } . ?p rdf:type ontology:Q1048835 }
Reichsgau Wien Witten Central Station
action filter_type
action union
action find
entity Witten Central Station
relation country
action find
entity Reichsgau Wien
relation country
type political territorial entity
{'OR': [['Witten Central Station', 'country', {'concept': 'political territorial entity'}], ['Reichsgau Wien', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Witten_Central_Station property:country ?p } UNION { resource:Reichsgau_Wien property:country ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q470060,P17,c(Q1048835)), (Q7309916,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q470060
relation P17
action find
entity Q7309916
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q470060', 'P17', {'concept': 'Q1048835'}], ['Q7309916', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q470060 property:P17 ?p } UNION { resource:Q7309916 property:P17 ?p } } . ?p rdf:type ontology:Q1048835 }
Germany Austria
Which political territories are Witten Central Station or Reichsgau Wien present in
Germany Austria
action filter_type
action union
action find
entity Witten Central Station
relation country
action find
entity Reichsgau Wien
relation country
type political territorial entity
{'OR': [['Witten Central Station', 'country', {'concept': 'political territorial entity'}], ['Reichsgau Wien', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Witten_Central_Station property:country ?p } UNION { resource:Reichsgau_Wien property:country ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q819819
P88
Q811430
USER
What was commisioned by Bergisch-Märkische Railway Company ?
(c(Q811430),P88,Q819819)
action filter_type
action find_reverse
entity Q819819
relation P88
type Q811430
[{'concept': 'Q811430'}, 'P88', 'Q819819']
SELECT DISTINCT ?m WHERE { ?m property:P88 resource:Q819819 . ?m rdf:type ontology:Q811430 }
Bergisch-Märkische Railway Company
action filter_type
action find_reverse
entity Bergisch-Märkische Railway Company
relation commissioned by
type construction
[{'concept': 'construction'}, 'commissioned by', 'Bergisch-Märkische Railway Company']
SELECT DISTINCT ?m WHERE { ?m property:commissioned_by resource:Bergisch-Märkische_Railway_Company . ?m rdf:type ontology:construction }
[]
construction
Q1229638
SYSTEM
Gemmenich Tunnel
Q1229638
(c(Q811430),P88,Q819819)
action filter_type
action find_reverse
entity Q819819
relation P88
type Q811430
[ANSWER] was commisioned by Bergisch-Märkische Railway Company
[{'concept': 'Q811430'}, 'P88', 'Q819819']
SELECT DISTINCT ?m WHERE { ?m property:P88 resource:Q819819 . ?m rdf:type ontology:Q811430 }
Gemmenich Tunnel
Gemmenich Tunnel was commisioned by Bergisch-Märkische Railway Company
Gemmenich Tunnel
action filter_type
action find_reverse
entity Bergisch-Märkische Railway Company
relation commissioned by
type construction
[{'concept': 'construction'}, 'commissioned by', 'Bergisch-Märkische Railway Company']
SELECT DISTINCT ?m WHERE { ?m property:commissioned_by resource:Bergisch-Märkische_Railway_Company . ?m rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q470060
P127
Q740752
USER
Who is the owner of Witten Central Station ?
(Q470060,P127,c(Q740752))
action filter_type
action find
entity Q470060
relation P127
type Q740752
['Q470060', 'P127', {'concept': 'Q740752'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q740752 . resource:Q470060 property:P127 ?d }
Witten Central Station
action filter_type
action find
entity Witten Central Station
relation owned by
type transport company
['Witten Central Station', 'owned by', {'concept': 'transport company'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:transport_company . resource:Witten_Central_Station property:owned_by ?d }
[]
transport company
Q9322
SYSTEM
Deutsche Bahn
Q9322
(Q470060,P127,c(Q740752))
action filter_type
action find
entity Q470060
relation P127
type Q740752
The owner of Witten Central Station is the [ANSWER]
['Q470060', 'P127', {'concept': 'Q740752'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q740752 . resource:Q470060 property:P127 ?d }
Deutsche Bahn
The owner of Witten Central Station is the Deutsche Bahn
Deutsche Bahn
action filter_type
action find
entity Witten Central Station
relation owned by
type transport company
['Witten Central Station', 'owned by', {'concept': 'transport company'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:transport_company . resource:Witten_Central_Station property:owned_by ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3536163
Q740752
USER
And what about Cap-Rouge trestle?
(Q3536163,P127,c(Q740752))
action filter_type
action find
entity Q3536163
relation P127
type Q740752
['Q3536163', 'P127', {'concept': 'Q740752'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q740752 . resource:Q3536163 property:P127 ?d }
Cap-Rouge trestle
action filter_type
action find
entity Cap-Rouge trestle
relation owned by
type transport company
['Cap-Rouge trestle', 'owned by', {'concept': 'transport company'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:transport_company . resource:Cap-Rouge_trestle property:owned_by ?d }
[]
transport company
Q624798
SYSTEM
Canadian National Railway
Q624798
(Q3536163,P127,c(Q740752))
action filter_type
action find
entity Q3536163
relation P127
type Q740752
[ANSWER]
['Q3536163', 'P127', {'concept': 'Q740752'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q740752 . resource:Q3536163 property:P127 ?d }
Canadian National Railway
Canadian National Railway
action filter_type
action find
entity Cap-Rouge trestle
relation owned by
type transport company
['Cap-Rouge trestle', 'owned by', {'concept': 'transport company'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:transport_company . resource:Cap-Rouge_trestle property:owned_by ?d }
[]