Simple Question (Direct)
Simple Question
Q2313145
P197
Q55488
USER
Which railway stations are adjacent to Paral·lel ?
(Q2313145,P197,c(Q55488))
action filter_type
action find
entity Q2313145
relation P197
type Q55488
['Q2313145', 'P197', {'concept': 'Q55488'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q55488 . resource:Q2313145 property:P197 ?m }
Paral·lel
action filter_type
action find
entity Paral·lel
relation adjacent station
type railway station
['Paral·lel', 'adjacent station', {'concept': 'railway station'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:railway_station . resource:Paral·lel property:adjacent_station ?m }
[]
railway station
Q610740 Q2549147 Q514447
SYSTEM
Poble Sec, Drassanes, Sant Antoni
Q610740 Q2549147 Q514447
(Q2313145,P197,c(Q55488))
action filter_type
action find
entity Q2313145
relation P197
type Q55488
[ANSWERS] are adjacent to Paral·lel
['Q2313145', 'P197', {'concept': 'Q55488'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q55488 . resource:Q2313145 property:P197 ?m }
Poble Sec Drassanes Sant Antoni
Poble Sec, Drassanes and Sant Antoni are adjacent to Paral·lel
Poble Sec Drassanes Sant Antoni
action filter_type
action find
entity Paral·lel
relation adjacent station
type railway station
['Paral·lel', 'adjacent station', {'concept': 'railway station'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:railway_station . resource:Paral·lel property:adjacent_station ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q610740
P1192
Q15665807
USER
Which rapid transit is a connecting service for Poble Sec ?
(Q610740,P1192,c(Q15665807))
action filter_type
action find
entity Q610740
relation P1192
type Q15665807
['Q610740', 'P1192', {'concept': 'Q15665807'}]
SELECT DISTINCT ?d WHERE { resource:Q610740 property:P1192 ?d . ?d rdf:type ontology:Q15665807 }
Poble Sec
action filter_type
action find
entity Poble Sec
relation connecting service
type rapid transit
['Poble Sec', 'connecting service', {'concept': 'rapid transit'}]
SELECT DISTINCT ?d WHERE { resource:Poble_Sec property:connecting_service ?d . ?d rdf:type ontology:rapid_transit }
[]
rapid transit
Q5503
SYSTEM
subterranean rapid transit
Q5503
(Q610740,P1192,c(Q15665807))
action filter_type
action find
entity Q610740
relation P1192
type Q15665807
[ANSWER] is a connecting service for Poble Sec
['Q610740', 'P1192', {'concept': 'Q15665807'}]
SELECT DISTINCT ?d WHERE { resource:Q610740 property:P1192 ?d . ?d rdf:type ontology:Q15665807 }
subterranean rapid transit
Subterranean rapid transit is a connecting service for Poble Sec
subterranean rapid transit
action filter_type
action find
entity Poble Sec
relation connecting service
type rapid transit
['Poble Sec', 'connecting service', {'concept': 'rapid transit'}]
SELECT DISTINCT ?d WHERE { resource:Poble_Sec property:connecting_service ?d . ?d rdf:type ontology:rapid_transit }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5503 Q26856861
P361
Q22667
USER
Is that rapid transit a part of Moscow Central Circle ?
(Q5503,P361,Q26856861)
action is_in
entity Q26856861
action find
entity Q5503
relation P361
['Q5503', 'P361', 'Q26856861']
ASK WHERE { resource:Q5503 property:P361 resource:Q26856861 }
subterranean rapid transit Moscow Central Circle
action is_in
entity Moscow Central Circle
action find
entity subterranean rapid transit
relation part of
['subterranean rapid transit', 'part of', 'Moscow Central Circle']
ASK WHERE { resource:subterranean_rapid_transit property:part_of resource:Moscow_Central_Circle }
[]
railroad
SYSTEM
NO
(Q5503,P361,Q26856861)
action is_in
entity Q26856861
action find
entity Q5503
relation P361
[ANSWER]
['Q5503', 'P361', 'Q26856861']
ASK WHERE { resource:Q5503 property:P361 resource:Q26856861 }
No
action is_in
entity Moscow Central Circle
action find
entity subterranean rapid transit
relation part of
['subterranean rapid transit', 'part of', 'Moscow Central Circle']
ASK WHERE { resource:subterranean_rapid_transit property:part_of resource:Moscow_Central_Circle }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3176204 Q5503
P81 P1192
Q55488
USER
Which railway stations have subterranean rapid transit as connecting station or have an interconnection with Green Line ?
OR((c(Q55488),P1192,Q5503), (c(Q55488),P81,Q3176204))
action filter_type
action union
action find_reverse
entity Q5503
relation P1192
action find_reverse
entity Q3176204
relation P81
type Q55488
{'OR': [[{'concept': 'Q55488'}, 'P1192', 'Q5503'], [{'concept': 'Q55488'}, 'P81', 'Q3176204']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P1192 resource:Q5503 } UNION { ?f property:P81 resource:Q3176204 } } . ?f rdf:type ontology:Q55488 }
Green Line subterranean rapid transit
action filter_type
action union
action find_reverse
entity subterranean rapid transit
relation connecting service
action find_reverse
entity Green Line
relation connecting line
type railway station
{'OR': [[{'concept': 'railway station'}, 'connecting service', 'subterranean rapid transit'], [{'concept': 'railway station'}, 'connecting line', 'Green Line']]}
SELECT DISTINCT ?f WHERE { { { ?f property:connecting_service resource:subterranean_rapid_transit } UNION { ?f property:connecting_line resource:Green_Line } } . ?f rdf:type ontology:railway_station }
[]
railway station
Q479426 Q535545 Q822473 Q4889669 Q2465764 Q823634 Q890391 Q2632101 Q601096 Q1869410
SYSTEM
Some of them are Schwanthalerhöhe, Fontana, Alte Heide, Santa Rosa, Seestadt, Holzapfelkreuth, Bogatell, Forgách utca, Ferenciek tere, El Putxet
Q2518479 Q979398 Q26462698 Q2019277 Q2003013 Q439114 Q630441 Q123726 Q822473 Q2018370 Q2331545 Q1599589 Q2465791 Q2465793 Q2465796 Q1433612 Q667797 Q439937 Q823559 Q784989 Q2640900 Q2657073 Q1810408 Q2549147 Q1028696 Q1376459 Q955699 Q2720055 Q1113224 Q1534005 Q439586 Q2056869 Q2524860 Q526358 Q2547644 Q2176793 Q2479837 Q480136 Q822786 Q1766021 Q3820879 Q479797 Q479795 Q2640991 Q3141073 Q3126219 Q921800 Q438871 Q2479478 Q2893215 Q2981913 Q2348839 Q2056616 Q2465683 Q2465681 Q2465800 Q2547046 Q2465685 Q2465721 Q2465724 Q2605288 Q2481265 Q15227547 Q823537 Q2944388 Q2705508 Q1984610 Q800445 Q2736048 Q3441899 Q1775918 Q2729745 Q1317156 Q1866200 Q2692167 Q438759 Q438751 Q3544564 Q514447 Q2514293 Q2523443 Q26458337 Q2635030 Q1850417 Q822522 Q4889839 Q2313145 Q779210 Q3217830 Q3197002 Q823622 Q1664168 Q1534781 Q2041028 Q2605805 Q2719965 Q2501185 Q2363363 Q1929866 Q479458 Q439906 Q1990058 Q439900 Q1537876 Q2055837 Q1028985 Q1490933 Q2643379 Q572749 Q1877541 Q2548194 Q2465764 Q2547776 Q2465760 Q2056839 Q823579 Q26462991 Q503383 Q439996 Q2420839 Q439160 Q2523452 Q2481187 Q555921 Q438801 Q3034416 Q438808 Q1841199 Q324703 Q439000 Q3150103 Q15223496 Q962642 Q2028238 Q893211 Q2465712 Q2465718 Q1262201 Q2184180 Q558633 Q1265322 Q3546888 Q2055658 Q3780396 Q823113 Q697300 Q26460634 Q2482135 Q823119 Q2686184 Q2106590 Q2414439 Q277810 Q3780401 Q3780405 Q2632500 Q822466 Q2481243 Q582040 Q2369006 Q2465780 Q2465787 Q2465786 Q439941 Q259349 Q439948 Q2972270 Q1912130 Q2647730 Q652399 Q2802438 Q2547358 Q2465750 Q996654 Q952778 Q674350 Q439592 Q2474438 Q2548401 Q2056874 Q2676250 Q2533009 Q663260 Q591874 Q12327724 Q1242856 Q479813 Q1813621 Q1869410 Q3306947 Q2072583 Q1113361 Q326599 Q2479465 Q2465694 Q2465691 Q1739409 Q22340932 Q948997 Q2016757 Q2465756 Q2465757 Q2324406 Q2465698 Q2998600 Q2632101 Q2481371 Q2933969 Q2056525 Q2524878 Q948393 Q2479349 Q2367549 Q471701 Q506934 Q2226449 Q577933 Q596655 Q664440 Q1997098 Q3544572 Q2481204 Q1429067 Q2979346 Q439131 Q966533 Q2474414 Q2354124 Q2462831 Q823634 Q439256 Q2656757 Q1029098 Q480063 Q3504674 Q1752839 Q2816282 Q2305840 Q2284424 Q2383315 Q2465678 Q2465673 Q616434 Q2465675 Q2646936 Q890391 Q820359 Q555964 Q2536679 Q3194609 Q438887 Q479415 Q2872107 Q2481582 Q663988 Q2180113 Q1374399 Q969395 Q3418823 Q2547669 Q2547661 Q480059 Q873079 Q2479851 Q3194854 Q479435 Q439606 Q2378663 Q2387571 Q2094288 Q26462605 Q2479001 Q2301380 Q3454149 Q2465701 Q2465705 Q2465704 Q2465709 Q1882713 Q2481248 Q2244021 Q3827253 Q3613056 Q3827256 Q1832307 Q176642 Q2463399 Q2710794 Q2014690 Q26463461 Q438779 Q747162 Q4940996 Q2817438 Q2523469 Q873256 Q2479784 Q2412345 Q8076660 Q2473865 Q1427150 Q669990 Q2711177 Q2611718 Q2125964 Q2054359 Q2548808 Q480276 Q1404089 Q1975942 Q554647 Q1766008 Q15266133 Q2633819 Q1573137 Q732179 Q747555 Q2413637 Q1764534 Q2061439 Q479776 Q2127269 Q730768 Q1263745 Q1029127 Q935853 Q1311686 Q2473940 Q1716538 Q2816829 Q2479455 Q518606 Q2035804 Q2449141 Q2465749 Q2465746 Q591798 Q2632136 Q2547614 Q2547599 Q1029092 Q439024 Q930433 Q2633721 Q610740 Q202403 Q2056478 Q1602480 Q335891 Q335894 Q2479031 Q1784764 Q2734598 Q2021847 Q2479039 Q2055072 Q2635058 Q640079 Q4889669 Q1936465 Q1287077 Q1890537 Q1669820 Q800447 Q2472213 Q3092987 Q2617870 Q320614 Q26460430 Q2480338 Q2908334 Q439925 Q2375864 Q2657040 Q325405 Q1768148 Q259315 Q823590 Q2055525 Q535545 Q2597956 Q1709379 Q479376 Q3844841 Q2140013 Q801603 Q823599 Q2719931 Q2481002 Q2477093 Q2479844 Q801608 Q479781 Q2536322 Q2057787 Q479426 Q479420 Q2382515 Q2404313 Q1606619 Q1734022 Q788560 Q26457988 Q2479567 Q2016175 Q2301391 Q934059 Q2479769 Q2994604 Q2465734 Q823501 Q2465730 Q2876854 Q601041 Q2465739 Q2056503 Q479490 Q479493 Q479494 Q2503261 Q3497286 Q3276108 Q3431728 Q823139 Q2085424 Q438863 Q2206139 Q929500 Q2525170 Q3495438 Q2055810 Q2251103 Q801215 Q2109006 Q973992 Q1623753 Q1597347 Q285913 Q2481170 Q2328516 Q2481179 Q1535681 Q2042482 Q678668 Q26462415 Q1094407 Q2816904 Q2547371 Q3347181 Q3410726 Q823612 Q830779 Q830777 Q3820626 Q2866523 Q721970 Q2181335 Q2866525 Q299980 Q543261 Q2271776 Q2657037 Q2205125 Q2696516 Q481072 Q438902 Q572734 Q2311028 Q2465773 Q2465770 Q1436932 Q2465778 Q2481355 Q2481198 Q2133945 Q515413 Q2056542 Q823547 Q439016 Q2430675 Q2536272 Q557269 Q2607435 Q1808896 Q15241526 Q388743 Q3501475 Q1278671 Q3544569 Q690814 Q955065 Q253156 Q2481227 Q601096 Q23081
OR((c(Q55488),P1192,Q5503), (c(Q55488),P81,Q3176204))
action filter_type
action union
action find_reverse
entity Q5503
relation P1192
action find_reverse
entity Q3176204
relation P81
type Q55488
[ANSWERS] have subterranean rapid transit as connecting station or have an interconnection with Green Line
{'OR': [[{'concept': 'Q55488'}, 'P1192', 'Q5503'], [{'concept': 'Q55488'}, 'P81', 'Q3176204']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P1192 resource:Q5503 } UNION { ?f property:P81 resource:Q3176204 } } . ?f rdf:type ontology:Q55488 }
Vall d'Hebron Lesseps Karlsplatz (Stachus) Sant Roc Torrassa Josephsplatz Villa de Vallecas Oberwiesenfeld Alte Heide Pinar del Rey Hospital Clínic Aderklaaer Straße Volkstheater Währinger Straße-Volksoper (Vienna U-Bahn) Zieglergasse Perfektastraße Valdecarros Basler Straße Goetheplatz Alfons X Entença Keleti pályaudvar Fabra i Puig Drassanes Deák Ferenc tér Rathaus Goya Maragall Via Júlia Neue Donau Fröttmaning Manuel Becerra Kálvin tér Avenida de la Paz Fondo Schuman metro station Miguel Hernández Richard-Strauss-Straße Studentenstadt La Elipa La Gavia Scheidplatz Gern Almeda Merode station Halsted Pinar de Chamartín Bonner Platz Sierra de Guadalupe Beaulieu metro station Gyöngyösi utca Badal Villaverde Bajo-Cruce Dresdner Straße Donauspital Zippererstraße Baró de Viver Enkplatz Kendlerstraße Krieau Ildefons Cerdà Canillas Hütteldorf (Vienna U-Bahn) Dietlindenstraße Central Nuevos Ministerios Station Theresienwiese Arc de Triomf station Ópera Roosevelt Hausfeldstraße Gran Vía Kardinal-Nagl-Platz Camp de l'Arpa Tetuan Moosfeld Messestadt-West Església Major Sant Antoni Verdaguer Corvin-negyed Trudering Határ út Montbau Freimann Can Peixauet Paral·lel Astoria Laramie King Drive Nordfriedhof Johnstraße Donaumarina Jaume I Aeropuerto T4 Joanic Gràcia Ernest Lluch Artigues – Sant Adrià Lehel Machtlfinger Straße Handelskai (Vienna U-Bahn) Implerstraße Aspernstraße Valdeacederas Bajcsy-Zsilinszky út Reumannplatz Station Horta Olympia-Einkaufszentrum Monumental Florida Seestadt Mercat Nou Schweglerstraße Legazpi Haderner Stern Ostbahnhof Münchner Freiheit Forstenrieder Allee Cuatro Caminos Maillingerstraße Lehel tér Alfonso XIII St.-Quirin-Platz Untersbergstraße Harlem/Lake (CTA station) Messestadt-Ost Sant Gervasi Dülferstrasse Silberhornstraße Indiana Heiligenstadt (Vienna U-Bahn) Sant Ildefons Sant Martí Kunst-Wet/Arts-Loi metro station Kagran Kagraner Platz Rochusgasse Encants Georg-Brauchle-Ring Selva de Mar Bikás park Diego de León Bellvitge/Gornal Theresienstraße Wien Hauptbahnhof Hauptbahnhof Laguna Großhadern Cornellà Centre Congrés Bajza utca Fraunhoferstraße Magòria-La Campana Sant Josep Árpád híd Moosacher St.Martin Platz Esperanza Príncipe de Vergara Pep Ventura Taborstraße Unter St. Veit Taubstummengasse Aidenbachstraße Garfield Thalkirchen Cicero Max-Weber-Platz La Bonanova Oak Park Herrmann-Debroux metro station Roquetes Nußdorfer Straße Aspern Nord Penitents Kőbánya-Kispest Garching-Forschungszentrum Tirso de Molina (Madrid Metro) Tarragona Retiro Pétillon metro station Széll Kálmán tér Delta railway station Barceloneta Leopoldau (Vienna U-Bahn) Tscherttegasse Westfriedhof Vallcarca El Putxet Delicias Zona Universitària Iglesia Obersendling Alto del Arenal Hardeggasse Erlaaer Straße Alser Straße Spittelau (Vienna U-Bahn) Demey metro station Park metro station Roßauer Lände Schlachthausgasse Trinitat Vella Gumpendorfer Straße Cottage Grove Forgách utca Arturo Soria California Prosperidad Kossuth Lajos tér El Maresme-Fòrum Ríos Rosas Can Serra Mangfallplatz Santa Coloma Mundet Hasenbergl Maria Cristina Alvarado Sants Estació Singuerlín Palos de la Frontera Museumsquartier Clinton Hohenzollernplatz Valldaura Barajas Pubilla Cases Colombia Holzapfelkreuth Stiglmaierplatz Puskás Ferenc Stadion Oktogon Böhmerwaldplatz Avinguda Tibidabo Station Gasometer 35th–Bronzeville–IIT Acacias / Embajadores Gorg station Liceu Burggasse-Stadthalle (Vienna U-Bahn) Alte Donau Kieferngarten Braunschweiggasse Molí Nou – Ciutat Cooperativa Bogatell Harthof Innsbrucker Ring Sant Andreu Kedzie Königsplatz Quiddestraße Austin Plaza de España / Noviciado Großfeldsiedlung Les Corts Llacuna Bac de Roda Randolph/Wabash Torras i Bages Bellvitge Prinzregentenplatz Pilgramgasse Buenos Aires Kelenföld vasútállomás (Budapest Metro) Therese-Giehse-Allee Garching Ventura Rodríguez Pöttyös utca Urgell Marienplatz Menéndez Pelayo Hősök tere Rákóczi tér Friedensbrücke Hietzing Josefstädter Straße Kaisermühlen Sant Pau – Dos de Maig Colón Bambú Las Rosas Alsacia Las Suertes Verneda Fürstenried West Plaza de Castilla Virrei Amat Ventas Heimeranplatz Karl-Preis-Platz Quevedo Bon Pastor 51st Batthyány tér Meidling Hauptstraße Bilbao Kodály körönd Állatkert Campo de las Naciones La Pau Espanya Can Boixeres Hankar metro station Santo Domingo Plaça de Sants Sagrada Família Olympiazentrum Alterlaa Canyelles Candidplatz Sol Bahnhof Meidling (Vienna U-Bahn) Dózsa György út Keplerplatz Can Vidalet Trinitat Nova Vörösmarty utca Erdberg Újpest-Központ Rotkreuzplatz Plaça del Centre Avenida de América Schottentor Opera Rocafort Schwedenplatz Antón Martín Poblenou 43rd Canal Donauinsel Santa Eulàlia Moncloa Nestroyplatz Neubaugasse Nyugati pályaudvar Újpest-Városkapu Navas Glòries Vörösmarty tér Kreillerstraße Móricz Zsigmond körtér Klinikák Poble Sec Sendlinger Tor San Cristóbal Jägerstraße Stephansplatz Karlsplatz Portazgo Herrengasse Gavarra Hostafrancs Puente de Vallecas Callao Ecseri út Plaça Molina Santa Rosa El Carmel Stubentor Argüelles Schottenring Plaça de Catalunya station Provença-Diagonal station Fővám tér Muntaner Odeonsplatz Neuperlach Süd Villaverde Alto Újbuda–központ Brudermühlstraße Badalona Pompeu Fabra Déli pályaudvar Universität Messe-Prater Hütteldorfer Straße Westpark Estrecho Fontana Mar de Cristal Thaliastraße Friedenheimer Straße Manoteras La Sagrera-Meridiana station Wien Floridsdorf railway station Poccistraße Guinardó – Hospital de Sant Pau Parque de Santa María Aeropuerto T1-T2-T3 Tribunal Stadlau Kolumbusplatz Rambla Just Oliveras San Fermín-Orcasur Schwanthalerhöhe Michaelibad Hospital de Bellvitge Clot Am Schöpfwerk Ober St. Veit Garching-Hochbrück Feldmoching Lista Atocha Széchenyi fürdő Congosto Pacífico Conservatory–Central Park Drive Michelbeuern Frankfurter Ring Kettenbrückengasse Sarrià Clark/Lake Margaretengürtel Sevilla Laimer Platz Westendstraße Neuperlach Zentrum Vilapicina State/Lake Madison/Wabash Ridgeland Milbertshofen Thieffry metro station Giselastraße Maelbeek/Maalbeek metro station Hospital 12 de Octubre Arany János utca Reina Elisenda San Bernardo Marina München-Giesing station Urquinaona Niederhofstraße Längenfeldgasse Donaustadtbrücke Blaha Lujza tér Velázquez Passeig de Gràcia Serrano Stadtpark Ciudad de los Ángeles Universitat Moosach Ciutadella-Vila Olímpica 47th Casa de l'Aigua II. János Pál pápa tér Pulaski Partnachplatz Besòs Besòs Mar La Almudena Ashland Népliget Collblanc Ashland/63rd Örs vezér tere Almendrales Mexikói út Pillangó utca Pàdua Nueva Numancia Klinikum Großhadern Petuelring Wettersteinplatz Adams/Wabash Siebenhirten Schönbrunn Rennbahnweg Stadion San Lorenzo Alonso Martínez Les Tres Torres Tetuán Hortaleza Am Hart Josephsburg Europa-Fira Palau Reial Arabellapark Avinguda Carrilet Llucmajor Landstraße (Vienna U-Bahn) Lavapiés Szent Gellért tér Vorgartenstraße Can Zam El Coll – La Teixonera Avenida de Guadalajara Nagyvárad tér Banco de España Ferenciek tere Madrid Chamartín station
Schwanthalerhöhe, Fontana, Alte Heide, Santa Rosa, Seestadt, Holzapfelkreuth, Bogatell, Forgách utca, Ferenciek tere and El Putxet have subterranean rapid transit as connecting station or have an interconnection with Green Line
Schwanthalerhöhe Fontana Alte Heide Santa Rosa Seestadt Holzapfelkreuth Bogatell Forgách utca Ferenciek tere El Putxet
action filter_type
action union
action find_reverse
entity subterranean rapid transit
relation connecting service
action find_reverse
entity Green Line
relation connecting line
type railway station
{'OR': [[{'concept': 'railway station'}, 'connecting service', 'subterranean rapid transit'], [{'concept': 'railway station'}, 'connecting line', 'Green Line']]}
SELECT DISTINCT ?f WHERE { { { ?f property:connecting_service resource:subterranean_rapid_transit } UNION { ?f property:connecting_line resource:Green_Line } } . ?f rdf:type ontology:railway_station }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1026585
P84
Q4830453 Q502895 Q55488
USER
Which railway stations were designed by greater number of business enterprises or people than Caledonian Road tube station ?
(c(Q55488),P84,c(Q4830453)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P84
type Q55488
type Q4830453
action find_tuple_counts
relation P84
type Q55488
type Q502895
action count
action filter_multi_types
action find
entity Q1026585
relation P84
type Q4830453
type Q502895
[{'concept': 'Q55488'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q1026585 property:P84 ?l . { { ?l rdf:type ontology:Q4830453 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?s WHERE { ?k rdf:type ?r . VALUES ( ?r ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } } GROUP BY ?s } }
Caledonian Road tube station
action greater
action union
action find_tuple_counts
relation architect
type railway station
type business enterprise
action find_tuple_counts
relation architect
type railway station
type common name
action count
action filter_multi_types
action find
entity Caledonian Road tube station
relation architect
type business enterprise
type common name
[{'concept': 'railway station'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Caledonian_Road_tube_station property:architect ?l . { { ?l rdf:type ontology:business_enterprise } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?s WHERE { ?k rdf:type ?r . VALUES ( ?r ) { ( ontology:business_enterprise ) ( ontology:common_name ) } } GROUP BY ?s } }
[]
business enterprise common name railway station
Q165368 Q801405 Q7370661
SYSTEM
Frankfurt (Main) Hauptbahnhof, Schiedam Centrum railway station, Rotterdam Blaak railway station
Q1341256 Q1341734 Q1481451 Q894569 Q1431088 Q1341676 Q678791 Q2538959 Q682505 Q1190806 Q800588 Q2120040 Q1200768 Q1800990 Q165368 Q677658 Q1341317 Q651554 Q978377 Q5139929 Q1341402 Q1363877 Q801405 Q1416721 Q1433544 Q7370661 Q1365632 Q703916 Q1276908 Q613766 Q1147948 Q1190787 Q976035
(c(Q55488),P84,c(Q4830453)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P84
type Q55488
type Q4830453
action find_tuple_counts
relation P84
type Q55488
type Q502895
action count
action filter_multi_types
action find
entity Q1026585
relation P84
type Q4830453
type Q502895
[ANSWERS] were designed by greater number of business enterprises or people than Caledonian Road tube station
[{'concept': 'Q55488'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q1026585 property:P84 ?l . { { ?l rdf:type ontology:Q4830453 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?s WHERE { ?k rdf:type ?r . VALUES ( ?r ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } } GROUP BY ?s } }
Krasnye Vorota Frunzenskaya Elephant & Castle tube station Boston Manor tube station Gloucester Road tube station Kropotkinskaya Oxford Circus tube station Leicester Square tube station Augsburg Central Station Universitet Brussels-Central railway station Rayners Lane tube station Vorobyovy Gory Kulosaari metro station Frankfurt (Main) Hauptbahnhof Lubyanka Sportivnaya Osterley tube station Hounslow West tube station Rotterdam Hofplein railway station Park Kultury Prospekt Vernadskogo Schiedam Centrum railway station Finchley Central tube station Holborn tube station Rotterdam Blaak railway station Novokuznetskaya Leipzig Hauptbahnhof Ealing Common tube station Stuttgart Central Station Komsomolskaya Sokolniki South Kensington tube station
Frankfurt (Main) Hauptbahnhof, Schiedam Centrum railway station and Rotterdam Blaak railway station were designed by greater number of business enterprises or people than Caledonian Road tube station
Frankfurt (Main) Hauptbahnhof Schiedam Centrum railway station Rotterdam Blaak railway station
action greater
action union
action find_tuple_counts
relation architect
type railway station
type business enterprise
action find_tuple_counts
relation architect
type railway station
type common name
action count
action filter_multi_types
action find
entity Caledonian Road tube station
relation architect
type business enterprise
type common name
[{'concept': 'railway station'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Caledonian_Road_tube_station property:architect ?l . { { ?l rdf:type ontology:business_enterprise } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?s WHERE { ?k rdf:type ?r . VALUES ( ?r ) { ( ontology:business_enterprise ) ( ontology:common_name ) } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5179839
P84
Q4830453 Q502895 Q55488
USER
And how about Cowton railway station?
(c(Q55488),P84,c(Q4830453)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P84
type Q55488
type Q4830453
action find_tuple_counts
relation P84
type Q55488
type Q502895
action count
action filter_multi_types
action find
entity Q5179839
relation P84
type Q4830453
type Q502895
[{'concept': 'Q55488'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?c ) WHERE { VALUES ( ?m ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } . ?u rdf:type ?m } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Q5179839 property:P84 ?g . { { ?g rdf:type ontology:Q4830453 } UNION { ?g rdf:type ontology:Q502895 } } } } . FILTER ( ?c > ?q ) }
Cowton railway station
action greater
action union
action find_tuple_counts
relation architect
type railway station
type business enterprise
action find_tuple_counts
relation architect
type railway station
type common name
action count
action filter_multi_types
action find
entity Cowton railway station
relation architect
type business enterprise
type common name
[{'concept': 'railway station'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?c ) WHERE { VALUES ( ?m ) { ( ontology:business_enterprise ) ( ontology:common_name ) } . ?u rdf:type ?m } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Cowton_railway_station property:architect ?g . { { ?g rdf:type ontology:business_enterprise } UNION { ?g rdf:type ontology:common_name } } } } . FILTER ( ?c > ?q ) }
[]
business enterprise common name railway station
Q165368 Q801405 Q7370661
SYSTEM
Frankfurt (Main) Hauptbahnhof, Schiedam Centrum railway station, Rotterdam Blaak railway station
Q1341256 Q1341734 Q1481451 Q894569 Q1431088 Q1341676 Q678791 Q2538959 Q682505 Q1190806 Q800588 Q2120040 Q1200768 Q1800990 Q165368 Q677658 Q1341317 Q651554 Q978377 Q5139929 Q1341402 Q1363877 Q801405 Q1416721 Q1433544 Q7370661 Q1365632 Q703916 Q1276908 Q613766 Q1147948 Q1190787 Q976035
(c(Q55488),P84,c(Q4830453)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P84
type Q55488
type Q4830453
action find_tuple_counts
relation P84
type Q55488
type Q502895
action count
action filter_multi_types
action find
entity Q5179839
relation P84
type Q4830453
type Q502895
[ANSWERS]
[{'concept': 'Q55488'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?c ) WHERE { VALUES ( ?m ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } . ?u rdf:type ?m } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Q5179839 property:P84 ?g . { { ?g rdf:type ontology:Q4830453 } UNION { ?g rdf:type ontology:Q502895 } } } } . FILTER ( ?c > ?q ) }
Krasnye Vorota Frunzenskaya Elephant & Castle tube station Boston Manor tube station Gloucester Road tube station Kropotkinskaya Oxford Circus tube station Leicester Square tube station Augsburg Central Station Universitet Brussels-Central railway station Rayners Lane tube station Vorobyovy Gory Kulosaari metro station Frankfurt (Main) Hauptbahnhof Lubyanka Sportivnaya Osterley tube station Hounslow West tube station Rotterdam Hofplein railway station Park Kultury Prospekt Vernadskogo Schiedam Centrum railway station Finchley Central tube station Holborn tube station Rotterdam Blaak railway station Novokuznetskaya Leipzig Hauptbahnhof Ealing Common tube station Stuttgart Central Station Komsomolskaya Sokolniki South Kensington tube station
Frankfurt (Main) Hauptbahnhof Schiedam Centrum railway station Rotterdam Blaak railway station
action greater
action union
action find_tuple_counts
relation architect
type railway station
type business enterprise
action find_tuple_counts
relation architect
type railway station
type common name
action count
action filter_multi_types
action find
entity Cowton railway station
relation architect
type business enterprise
type common name
[{'concept': 'railway station'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?c ) WHERE { VALUES ( ?m ) { ( ontology:business_enterprise ) ( ontology:common_name ) } . ?u rdf:type ?m } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Cowton_railway_station property:architect ?g . { { ?g rdf:type ontology:business_enterprise } UNION { ?g rdf:type ontology:common_name } } } } . FILTER ( ?c > ?q ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6354448 Q514447
P17
Q15617994
USER
Which administrative territories do Sant Antoni or Kaltamanlu belong to ?
OR((Q514447,P17,c(Q15617994)), (Q6354448,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q514447
relation P17
action find
entity Q6354448
relation P17
type Q15617994
{'OR': [['Q514447', 'P17', {'concept': 'Q15617994'}], ['Q6354448', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q514447 property:P17 ?u } UNION { resource:Q6354448 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Kaltamanlu Sant Antoni
action filter_type
action union
action find
entity Sant Antoni
relation country
action find
entity Kaltamanlu
relation country
type designation for an administrative territorial entity
{'OR': [['Sant Antoni', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kaltamanlu', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Sant_Antoni property:country ?u } UNION { resource:Kaltamanlu property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q794
SYSTEM
Spain, Iran
Q29 Q794
OR((Q514447,P17,c(Q15617994)), (Q6354448,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q514447
relation P17
action find
entity Q6354448
relation P17
type Q15617994
Sant Antoni or Kaltamanlu belong to the [ANSWERS]
{'OR': [['Q514447', 'P17', {'concept': 'Q15617994'}], ['Q6354448', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q514447 property:P17 ?u } UNION { resource:Q6354448 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Spain Iran
Sant Antoni or Kaltamanlu belong to the Spain and Iran
Spain Iran
action filter_type
action union
action find
entity Sant Antoni
relation country
action find
entity Kaltamanlu
relation country
type designation for an administrative territorial entity
{'OR': [['Sant Antoni', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kaltamanlu', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Sant_Antoni property:country ?u } UNION { resource:Kaltamanlu property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q468657
P27
Q502895
USER
Are Irán Eory a citizen of those administrative territories ?
(Q468657,P27,Q29) (Q468657,P27,Q794)
action is_in
entity prev_answer
action find
entity Q468657
relation P27
['Q468657', 'P27', 'Q29'] ['Q468657', 'P27', 'Q794']
ASK WHERE { resource:Q468657 property:P27 ?i . VALUES ( ?i ) { ( resource:Q29 ) ( resource:Q794 ) } }
Irán Eory
action is_in
entity prev_answer
action find
entity Irán Eory
relation country of citizenship
['Irán Eory', 'country of citizenship', 'Spain'] ['Irán Eory', 'country of citizenship', 'Iran']
ASK WHERE { resource:Irán_Eory property:country_of_citizenship ?i . VALUES ( ?i ) { ( resource:Spain ) ( resource:Iran ) } }
[]
common name
SYSTEM
YES
(Q468657,P27,Q29) (Q468657,P27,Q794)
action is_in
entity prev_answer
action find
entity Q468657
relation P27
[ANSWER]
['Q468657', 'P27', 'Q29'] ['Q468657', 'P27', 'Q794']
ASK WHERE { resource:Q468657 property:P27 ?i . VALUES ( ?i ) { ( resource:Q29 ) ( resource:Q794 ) } }
Yes
action is_in
entity prev_answer
action find
entity Irán Eory
relation country of citizenship
['Irán Eory', 'country of citizenship', 'Spain'] ['Irán Eory', 'country of citizenship', 'Iran']
ASK WHERE { resource:Irán_Eory property:country_of_citizenship ?i . VALUES ( ?i ) { ( resource:Spain ) ( resource:Iran ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q638928
P559
Q55488 Q728937 Q83620
USER
Which railway stations are a terminus for less number of railroad lines and thoroughfares than Młociny metro station ?
(c(Q728937)|c(Q83620),P559,c(Q55488))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q55488
type Q728937
action find_reverse_tuple_counts
relation P559
type Q55488
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q638928
relation P559
type Q728937
type Q83620
[[{'concept': 'Q728937'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:P559 resource:Q638928 . { VALUES ( ?g ) { ( ontology:Q83620 ) ( ontology:Q728937 ) } . ?u rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?x WHERE { VALUES ( ?k ) { ( ontology:Q83620 ) ( ontology:Q728937 ) } . ?a rdf:type ?k } GROUP BY ?x } }
Młociny metro station
action less
action union
action find_reverse_tuple_counts
relation terminus
type railway station
type railroad line
action find_reverse_tuple_counts
relation terminus
type railway station
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Młociny metro station
relation terminus
type railroad line
type thoroughfare
[[{'concept': 'railroad line'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:terminus resource:Młociny_metro_station . { VALUES ( ?g ) { ( ontology:thoroughfare ) ( ontology:railroad_line ) } . ?u rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?x WHERE { VALUES ( ?k ) { ( ontology:thoroughfare ) ( ontology:railroad_line ) } . ?a rdf:type ?k } GROUP BY ?x } }
[]
railway station railroad line thoroughfare
Q6456 Q801282 Q1392037
SYSTEM
Hamburg Central Station, Nørreport Station, Opéra
Q260986 Q1392037 Q654980 Q16273 Q2001751 Q667121 Q801094 Q54453 Q801562 Q6456 Q2631124 Q801282 Q801554 Q10591971 Q552872 Q376589 Q660045 Q801185 Q801189 Q801210 Q2355557 Q5113294
(c(Q728937)|c(Q83620),P559,c(Q55488))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q55488
type Q728937
action find_reverse_tuple_counts
relation P559
type Q55488
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q638928
relation P559
type Q728937
type Q83620
[ANSWERS] are a terminus for less number of railroad lines and thoroughfares than Młociny metro station
[[{'concept': 'Q728937'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:P559 resource:Q638928 . { VALUES ( ?g ) { ( ontology:Q83620 ) ( ontology:Q728937 ) } . ?u rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?x WHERE { VALUES ( ?k ) { ( ontology:Q83620 ) ( ontology:Q728937 ) } . ?a rdf:type ?k } GROUP BY ?x } }
Flinders Street railway station Opéra Berlin-Spandau station Giheung Station World Trade Center Wiesbaden Central Station Lergravsparken Station South Station Vestamager Station Hamburg Central Station Van Cortlandt Park – 242nd Street Nørreport Station Vanløse Station Lufthavnen Station Berlin Frankfurter Allee station Berlin Südkreuz Ostkreuz Milano Cadorna railway station Milano Rogoredo railway station Moorgate station South Ferry loops Christopher Street
Hamburg Central Station, Nørreport Station and Opéra are a terminus for less number of railroad lines and thoroughfares than Młociny metro station
Hamburg Central Station Nørreport Station Opéra
action less
action union
action find_reverse_tuple_counts
relation terminus
type railway station
type railroad line
action find_reverse_tuple_counts
relation terminus
type railway station
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Młociny metro station
relation terminus
type railroad line
type thoroughfare
[[{'concept': 'railroad line'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { ?u property:terminus resource:Młociny_metro_station . { VALUES ( ?g ) { ( ontology:thoroughfare ) ( ontology:railroad_line ) } . ?u rdf:type ?g } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?x WHERE { VALUES ( ?k ) { ( ontology:thoroughfare ) ( ontology:railroad_line ) } . ?a rdf:type ?k } GROUP BY ?x } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2106644
P559
Q55488 Q728937 Q83620
USER
And also tell me about Tuen Mun Station?
(c(Q728937)|c(Q83620),P559,c(Q55488))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q55488
type Q728937
action find_reverse_tuple_counts
relation P559
type Q55488
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q2106644
relation P559
type Q728937
type Q83620
[[{'concept': 'Q728937'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?z ) WHERE { { ?n rdf:type ontology:Q55488 . ?h rdf:type ontology:Q728937 . ?h property:P559 ?n } UNION { ?h property:P559 ?n . ?n rdf:type ontology:Q55488 . ?h rdf:type ontology:Q83620 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P559 resource:Q2106644 . { { ?v rdf:type ontology:Q728937 } UNION { ?v rdf:type ontology:Q83620 } } } } . FILTER ( ?z < ?i ) }
Tuen Mun Station
action less
action union
action find_reverse_tuple_counts
relation terminus
type railway station
type railroad line
action find_reverse_tuple_counts
relation terminus
type railway station
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Tuen Mun Station
relation terminus
type railroad line
type thoroughfare
[[{'concept': 'railroad line'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?z ) WHERE { { ?n rdf:type ontology:railway_station . ?h rdf:type ontology:railroad_line . ?h property:terminus ?n } UNION { ?h property:terminus ?n . ?n rdf:type ontology:railway_station . ?h rdf:type ontology:thoroughfare } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:terminus resource:Tuen_Mun_Station . { { ?v rdf:type ontology:railroad_line } UNION { ?v rdf:type ontology:thoroughfare } } } } . FILTER ( ?z < ?i ) }
[]
railway station railroad line thoroughfare
Q6456 Q801282 Q1392037
SYSTEM
Hamburg Central Station, Nørreport Station, Opéra
Q260986 Q1392037 Q654980 Q16273 Q2001751 Q667121 Q801094 Q54453 Q801562 Q6456 Q2631124 Q801282 Q801554 Q10591971 Q552872 Q376589 Q660045 Q801185 Q801189 Q801210 Q2355557 Q5113294
(c(Q728937)|c(Q83620),P559,c(Q55488))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q55488
type Q728937
action find_reverse_tuple_counts
relation P559
type Q55488
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q2106644
relation P559
type Q728937
type Q83620
[ANSWERS]
[[{'concept': 'Q728937'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?z ) WHERE { { ?n rdf:type ontology:Q55488 . ?h rdf:type ontology:Q728937 . ?h property:P559 ?n } UNION { ?h property:P559 ?n . ?n rdf:type ontology:Q55488 . ?h rdf:type ontology:Q83620 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P559 resource:Q2106644 . { { ?v rdf:type ontology:Q728937 } UNION { ?v rdf:type ontology:Q83620 } } } } . FILTER ( ?z < ?i ) }
Flinders Street railway station Opéra Berlin-Spandau station Giheung Station World Trade Center Wiesbaden Central Station Lergravsparken Station South Station Vestamager Station Hamburg Central Station Van Cortlandt Park – 242nd Street Nørreport Station Vanløse Station Lufthavnen Station Berlin Frankfurter Allee station Berlin Südkreuz Ostkreuz Milano Cadorna railway station Milano Rogoredo railway station Moorgate station South Ferry loops Christopher Street
Hamburg Central Station Nørreport Station Opéra
action less
action union
action find_reverse_tuple_counts
relation terminus
type railway station
type railroad line
action find_reverse_tuple_counts
relation terminus
type railway station
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Tuen Mun Station
relation terminus
type railroad line
type thoroughfare
[[{'concept': 'railroad line'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?z ) WHERE { { ?n rdf:type ontology:railway_station . ?h rdf:type ontology:railroad_line . ?h property:terminus ?n } UNION { ?h property:terminus ?n . ?n rdf:type ontology:railway_station . ?h rdf:type ontology:thoroughfare } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:terminus resource:Tuen_Mun_Station . { { ?v rdf:type ontology:railroad_line } UNION { ?v rdf:type ontology:thoroughfare } } } } . FILTER ( ?z < ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1642454
P559
Q55488 Q44377 Q34442
USER
How many railway stations are a terminus for greater number of tunnels or roads than Hässelby strand metro station ?
(c(Q44377)|c(Q34442),P559,c(Q55488))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q55488
type Q44377
action find_reverse_tuple_counts
relation P559
type Q55488
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q1642454
relation P559
type Q44377
type Q34442
[[{'concept': 'Q44377'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?w WHERE { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:Q44377 ) ( ontology:Q34442 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P559 resource:Q1642454 . { { ?o rdf:type ontology:Q44377 } UNION { ?o rdf:type ontology:Q34442 } } } } . FILTER ( ?j > ?t ) }
Hässelby strand metro station
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type railway station
type tunnel
action find_reverse_tuple_counts
relation terminus
type railway station
type road
action count
action filter_multi_types
action find_reverse
entity Hässelby strand metro station
relation terminus
type tunnel
type road
[[{'concept': 'tunnel'}, {'concept': 'road'}], 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?w WHERE { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:tunnel ) ( ontology:road ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:terminus resource:Hässelby_strand_metro_station . { { ?o rdf:type ontology:tunnel } UNION { ?o rdf:type ontology:road } } } } . FILTER ( ?j > ?t ) }
[]
railway station tunnel road
SYSTEM
2
Q2001751 Q552872
(c(Q44377)|c(Q34442),P559,c(Q55488))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q55488
type Q44377
action find_reverse_tuple_counts
relation P559
type Q55488
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q1642454
relation P559
type Q44377
type Q34442
[ANSWER]
[[{'concept': 'Q44377'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?w WHERE { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:Q44377 ) ( ontology:Q34442 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P559 resource:Q1642454 . { { ?o rdf:type ontology:Q44377 } UNION { ?o rdf:type ontology:Q34442 } } } } . FILTER ( ?j > ?t ) }
World Trade Center Berlin Frankfurter Allee station
2
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type railway station
type tunnel
action find_reverse_tuple_counts
relation terminus
type railway station
type road
action count
action filter_multi_types
action find_reverse
entity Hässelby strand metro station
relation terminus
type tunnel
type road
[[{'concept': 'tunnel'}, {'concept': 'road'}], 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) ?w WHERE { ?p rdf:type ?s . VALUES ( ?s ) { ( ontology:tunnel ) ( ontology:road ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:terminus resource:Hässelby_strand_metro_station . { { ?o rdf:type ontology:tunnel } UNION { ?o rdf:type ontology:road } } } } . FILTER ( ?j > ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q214949 Q468657
P19 P27
Q15617994
USER
Which administrative territories are Irán Eory a civilian of or were Heinrich von Brühl born in ?
OR((Q468657,P27,c(Q15617994)), (Q214949,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q468657
relation P27
action find
entity Q214949
relation P19
type Q15617994
{'OR': [['Q468657', 'P27', {'concept': 'Q15617994'}], ['Q214949', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q468657 property:P27 ?v } UNION { resource:Q214949 property:P19 ?v } } . ?v rdf:type ontology:Q15617994 }
Heinrich von Brühl Irán Eory
action filter_type
action union
action find
entity Irán Eory
relation country of citizenship
action find
entity Heinrich von Brühl
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Irán Eory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Heinrich von Brühl', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Irán_Eory property:country_of_citizenship ?v } UNION { resource:Heinrich_von_Brühl property:place_of_birth ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q96 Q556425 Q794
SYSTEM
Spain, Mexico, Gangloffsömmern, Iran
Q29 Q96 Q556425 Q794
OR((Q468657,P27,c(Q15617994)), (Q214949,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q468657
relation P27
action find
entity Q214949
relation P19
type Q15617994
[ANSWERS] are Irán Eory a civilian of or were Heinrich von Brühl born in
{'OR': [['Q468657', 'P27', {'concept': 'Q15617994'}], ['Q214949', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q468657 property:P27 ?v } UNION { resource:Q214949 property:P19 ?v } } . ?v rdf:type ontology:Q15617994 }
Spain Mexico Gangloffsömmern Iran
Spain, Mexico, Gangloffsömmern and Iran are Irán Eory a civilian of or were Heinrich von Brühl born in
Spain Mexico Gangloffsömmern Iran
action filter_type
action union
action find
entity Irán Eory
relation country of citizenship
action find
entity Heinrich von Brühl
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Irán Eory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Heinrich von Brühl', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Irán_Eory property:country_of_citizenship ?v } UNION { resource:Heinrich_von_Brühl property:place_of_birth ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P47
Q56061
USER
Which administrative territories do Spain share a border with ?
(c(Q56061),P47,Q29)
action filter_type
action find
entity Q29
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q29']
SELECT DISTINCT ?q WHERE { resource:Q29 property:P47 ?q . ?q rdf:type ontology:Q56061 }
Spain
action filter_type
action find
entity Spain
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain']
SELECT DISTINCT ?q WHERE { resource:Spain property:shares_border_with ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458 Q7172
SYSTEM
European Union, Arab League
Q458 Q7172
(c(Q56061),P47,Q29)
action filter_type
action find
entity Q29
relation P47
type Q56061
Spain share a border with the [ANSWERS]
[{'concept': 'Q56061'}, 'P47', 'Q29']
SELECT DISTINCT ?q WHERE { resource:Q29 property:P47 ?q . ?q rdf:type ontology:Q56061 }
European Union Arab League
Spain share a border with the European Union and Arab League
European Union Arab League
action filter_type
action find
entity Spain
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain']
SELECT DISTINCT ?q WHERE { resource:Spain property:shares_border_with ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]