Simple Question (Direct)
Simple Question
Q11754249
P21
Q290
USER
Which sex does Leon Gajewicz belong to ?
(Q11754249,P21,c(Q290))
action filter_type
action find
entity Q11754249
relation P21
type Q290
['Q11754249', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q11754249 property:P21 ?r . ?r rdf:type ontology:Q290 }
Leon Gajewicz
action filter_type
action find
entity Leon Gajewicz
relation gender
type sex
['Leon Gajewicz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Leon_Gajewicz property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11754249,P21,c(Q290))
action filter_type
action find
entity Q11754249
relation P21
type Q290
Leon Gajewicz belongs to [ANSWER]
['Q11754249', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q11754249 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Leon Gajewicz belongs to male
male
action filter_type
action find
entity Leon Gajewicz
relation gender
type sex
['Leon Gajewicz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Leon_Gajewicz property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11754249
P19
Q486972
USER
Which human settlement is the place of birth of that person ?
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q11754249
relation P19
type Q486972
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?c WHERE { resource:Q11754249 property:P19 ?c . ?c rdf:type ontology:Q486972 }
Leon Gajewicz
action filter_type
action find
entity Leon Gajewicz
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?c WHERE { resource:Leon_Gajewicz property:place_of_birth ?c . ?c rdf:type ontology:human_settlement }
[]
human settlement
Q102317
SYSTEM
Kielce
Q102317
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q11754249
relation P19
type Q486972
[ANSWER] is the place of birth of that person
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?c WHERE { resource:Q11754249 property:P19 ?c . ?c rdf:type ontology:Q486972 }
Kielce
Kielce is the place of birth of that person
Kielce
action filter_type
action find
entity Leon Gajewicz
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?c WHERE { resource:Leon_Gajewicz property:place_of_birth ?c . ?c rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q102317 Q26397 Q27393
P190
Q56061
USER
Is that human settlement twin city of Nitra and Herning ?
(Q102317,P190,Q26397) (Q102317,P190,Q27393)
action is_in
entity Q102317
action intersection
action find_reverse
entity Q26397
relation P190
action find_reverse
entity Q27393
relation P190
['Q102317', 'P190', 'Q26397'] ['Q102317', 'P190', 'Q27393']
ASK WHERE { resource:Q102317 property:P190 resource:Q26397 . resource:Q102317 property:P190 resource:Q27393 }
Kielce Nitra Herning
action is_in
entity Kielce
action intersection
action find_reverse
entity Nitra
relation sister city
action find_reverse
entity Herning
relation sister city
['Kielce', 'sister city', 'Nitra'] ['Kielce', 'sister city', 'Herning']
ASK WHERE { resource:Kielce property:sister_city resource:Nitra . resource:Kielce property:sister_city resource:Herning }
[]
administrative territorial entity
SYSTEM
YES
(Q102317,P190,Q26397) (Q102317,P190,Q27393)
action is_in
entity Q102317
action intersection
action find_reverse
entity Q26397
relation P190
action find_reverse
entity Q27393
relation P190
[ANSWER]
['Q102317', 'P190', 'Q26397'] ['Q102317', 'P190', 'Q27393']
ASK WHERE { resource:Q102317 property:P190 resource:Q26397 . resource:Q102317 property:P190 resource:Q27393 }
Yes
action is_in
entity Kielce
action intersection
action find_reverse
entity Nitra
relation sister city
action find_reverse
entity Herning
relation sister city
['Kielce', 'sister city', 'Nitra'] ['Kielce', 'sister city', 'Herning']
ASK WHERE { resource:Kielce property:sister_city resource:Nitra . resource:Kielce property:sister_city resource:Herning }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11754249 Q36
P27
Q15617994
USER
Is Leon Gajewicz a civilian of Poland ?
(Q11754249,P27,Q36)
action is_in
entity Q36
action find
entity Q11754249
relation P27
['Q11754249', 'P27', 'Q36']
ASK WHERE { resource:Q11754249 property:P27 resource:Q36 }
Leon Gajewicz Poland
action is_in
entity Poland
action find
entity Leon Gajewicz
relation country of citizenship
['Leon Gajewicz', 'country of citizenship', 'Poland']
ASK WHERE { resource:Leon_Gajewicz property:country_of_citizenship resource:Poland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q11754249,P27,Q36)
action is_in
entity Q36
action find
entity Q11754249
relation P27
[ANSWER]
['Q11754249', 'P27', 'Q36']
ASK WHERE { resource:Q11754249 property:P27 resource:Q36 }
Yes
action is_in
entity Poland
action find
entity Leon Gajewicz
relation country of citizenship
['Leon Gajewicz', 'country of citizenship', 'Poland']
ASK WHERE { resource:Leon_Gajewicz property:country_of_citizenship resource:Poland }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q486972 Q13220204 Q20667921
USER
Which human settlements are the sister cities of min number of administrative country subdivisions and french administrative divisions ?
(c(Q13220204)|c(Q20667921),P190,c(Q486972))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q13220204
action find_reverse_tuple_counts
relation P190
type Q486972
type Q20667921
[[{'concept': 'Q13220204'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?n ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q13220204 ) ( ontology:Q20667921 ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:P190 ?h . ?h rdf:type ontology:Q486972 . ?c rdf:type ontology:Q13220204 } UNION { ?h rdf:type ontology:Q486972 . ?c rdf:type ontology:Q20667921 . ?c property:P190 ?h } } GROUP BY ?h } . FILTER ( ?e = ?d ) }
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation sister city
type human settlement
type type of french administrative division
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?n ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:sister_city ?h . ?h rdf:type ontology:human_settlement . ?c rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?h rdf:type ontology:human_settlement . ?c rdf:type ontology:type_of_french_administrative_division . ?c property:sister_city ?h } } GROUP BY ?h } . FILTER ( ?e = ?d ) }
[]
human settlement second-level administrative country subdivision type of french administrative division
Q1055 Q24879 Q47554
SYSTEM
Hamburg, Bremen, Toruń
Q2394432 Q11977 Q104302 Q517653 Q57916 Q1997342 Q631346 Q889411 Q1685483 Q55854 Q661283 Q278871 Q768691 Q259086 Q103085 Q660453 Q267791 Q973641 Q278447 Q290356 Q1193256 Q2094321 Q798800 Q623049 Q1734032 Q210886 Q1018362 Q192508 Q140180 Q504639 Q284596 Q61711 Q984766 Q2655674 Q106281 Q254012 Q2066426 Q1228438 Q580115 Q559841 Q244506 Q570684 Q752107 Q1055 Q1106961 Q738303 Q882731 Q51021 Q669901 Q302745 Q2270558 Q576636 Q3171757 Q161595 Q675834 Q1141799 Q587155 Q95000 Q139242 Q518275 Q818794 Q550434 Q105048 Q1464902 Q354547 Q430449 Q566701 Q158006 Q661260 Q672511 Q1013119 Q506515 Q2523806 Q753891 Q649405 Q81760 Q26590 Q131612 Q92689 Q62026 Q853258 Q906116 Q875641 Q302785 Q881265 Q178582 Q571926 Q1331722 Q698591 Q110732 Q738353 Q463332 Q1805635 Q1315645 Q147934 Q1993774 Q257244 Q871536 Q572595 Q162049 Q1709669 Q627970 Q487500 Q318637 Q1404131 Q1962265 Q254165 Q2556719 Q316991 Q1261010 Q1790614 Q214215 Q47554 Q984257 Q1025108 Q701263 Q700397 Q158488 Q2936966 Q183228 Q1297395 Q494604 Q221051 Q30940 Q24879 Q336250 Q149790 Q173270 Q672717 Q1394400 Q363830 Q826545 Q280450 Q1620424 Q3981601 Q502488 Q991571 Q199440 Q3141273 Q280588 Q1958327 Q179645 Q365081 Q3777 Q660580 Q2141722 Q206085 Q624352 Q46885 Q123511 Q8969 Q486341 Q1651865 Q1648853 Q2481404 Q631108 Q292927 Q661272 Q871601 Q3937847 Q163474 Q389363 Q273014 Q1026520 Q260320 Q73817 Q102350 Q509566 Q372402 Q682989 Q255175 Q173121 Q804268 Q1769929 Q16083 Q2114575 Q769446 Q386991 Q254107 Q669995 Q1021277 Q660945 Q582942 Q145972 Q1920378 Q851068 Q255350 Q204245 Q2447536 Q143140 Q215633 Q572559 Q1667843 Q608977 Q489806 Q253760 Q993904 Q26340 Q217234 Q1618464 Q127700 Q260089 Q1997497 Q1326284 Q1921334 Q61306 Q233903 Q61302 Q700132 Q382791 Q569248 Q507533 Q485294 Q665175 Q492868 Q232624 Q1237045 Q2734 Q204271 Q489972 Q643600 Q2256995 Q106583 Q308928 Q494504 Q233495 Q200252 Q200805 Q487527 Q187572 Q261216 Q971699 Q303066 Q521851 Q572568 Q212713 Q53077 Q2534964 Q461287 Q201516 Q985092 Q671233 Q686386 Q48256 Q491754 Q550175 Q1007302 Q40194 Q252982 Q524894 Q14805 Q436806 Q251325 Q2391165 Q564757 Q695969 Q2039456 Q693724 Q275592 Q1021267 Q998438 Q660428 Q2352357 Q259214 Q257130 Q698520 Q1552698 Q857943 Q472076 Q231645 Q1418300 Q467191 Q871563 Q108679 Q324402 Q189268 Q1528292 Q494283 Q661329 Q13383459 Q278189 Q681340 Q985734 Q236083 Q1020031 Q542386 Q9022 Q1114457 Q104731 Q1021035 Q688620 Q250984 Q752460 Q2013767 Q41974
(c(Q13220204)|c(Q20667921),P190,c(Q486972))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q13220204
action find_reverse_tuple_counts
relation P190
type Q486972
type Q20667921
[ANSWERS] are the sister cities of min number of administrative country subdivisions and french administrative divisions
[[{'concept': 'Q13220204'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?n ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q13220204 ) ( ontology:Q20667921 ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:P190 ?h . ?h rdf:type ontology:Q486972 . ?c rdf:type ontology:Q13220204 } UNION { ?h rdf:type ontology:Q486972 . ?c rdf:type ontology:Q20667921 . ?c property:P190 ?h } } GROUP BY ?h } . FILTER ( ?e = ?d ) }
Tarnów Opolski Tychy Chorzów Illingen, Saarland Lengefeld Pioppa Steinthaleben Bodega Bay Wilbich Yapeyú, Corrientes Laa an der Thaya Pozuzo Barañáin Bad Hall Crespina Voitsberg Ried im Innkreis Ontinyent Ybbs an der Donau San Pedro Bilina Pietna Bad Vöslau Kapfenberg Karlštejn Villahermosa Pola de Siero Bergen op Zoom Retz Dettelbach Eisenerz Külsheim Kobyla Góra, Greater Poland Voivodeship Kiryat Haim Tarnów Peuerbach Wierzchowo, Drawsko County Dischingen Leinefelde Ichtershausen Zwettl Pawłowiczki Hainburg an der Donau Hamburg Colognola Reynosa Burglesum Suchy Las Mank Hall in Tirol Tapalpa Huamantla Aabybro Mysłowice Trofaiach Texcoco, State of Mexico Kolno, Warmian-Masurian Voivodeship Zola Predosa Zacatecas Wörlitz Berbisdorf Köflach Słupsk Frille Adelebsen Gmunden Gieboldehausen Jaworzno Poysdorf Langenlois Mielno Röttingen Vietmannsdorf San Miguel de Allende Leubnitz Wittichenau Ciudad Juárez Wiener Neustadt Sopot Gailingen Puerto Vallarta Breitenbach Weiz Hammelburg Ruhlsdorf Wels Bad Königshofen Ellar Hohenems Wałbrzych Matamoros Buda Castle Quarter Vändra Lindau am Harz Jelenia Góra Rønde Mittersill Lilienfeld Neugersdorf Charlottenburg San Juan de los Lagos Kailua Spittal an der Drau Los Alamos Felsberg San Martín Texmelucan Bischofshofen Weixdorf Wellingholzhausen Stráž Krögis La Paz Toruń Rychliki Cadenabbia Neudietendorf Wolkersdorf im Weinviertel Piekary Śląskie Cap-Rouge, Quebec City Saalfelden Oehna Sankt Veit an der Glan Xalapa Albert Bremen Lienz Brody, Żary County Veracruz Feldbach Porto Ercole Tempelhof Triebes Scheibbs Hirschfelde Tavernola San Felice Obercunnersdorf Niederschöna Mexicali Kobiór Seekirchen am Wallersee Mühlbach Shinjuku-ku Wińsko Ouagadougou Gmünd Reinsdorf Zistersdorf Hollabrunn Mylau Grudziądz Cancún Kufstein Hörstein Finthen Ludwin Nerchau Óbuda Fürstenfeld Friesach Riva Trigoso Mureck Grein Tampico Juan-les-Pins Steyr Winschoten Bytom Plattling Castroville Luzino Eferding Querétaro Bakałarzewo Enguera Deggendorf Przemęt, Greater Poland Voivodeship Van Nuys Torreón Imst Mautern an der Donau Ikast Straßburg Fladungen Zamość Mendocino Beuren Pöchlarn Cuernavaca Jala Freistadt Łomża Spremberg Welschbach Friedberg Melk Neusiedl am See Orizaba Vils Ōta-ku Hildfeld Udanin Enns Calpulalpan Saint Ann Parish Teocaltiche Guanajuato Meguro-ku Chihuahua Radenthein Lewin Kłodzki Všeruby Feldkirchen in Kärnten Leoben Kaliska, Gmina Kaliska Mürzzuschlag Arakawa-ku Grumbach Skierniewice San Luis Potosí Schwechat Gleisdorf Schwerborn Bielsko-Biała Kreuzberg Bludenz Shinagawa-ku Morelia Aguascalientes Wolfsberg Zell am See Attnang-Puchheim Tepatitlán de Morelos Municipality Aars Miękinia, Lower Silesian Voivodeship Schirgiswalde Bunkyō-ku Saltillo Redford Ostrołęka Miami Beach Włoszakowice Gallneukirchen Stolberg Dnipro Senftenberg Kirschau Damasławek Mazatlán Oberpullendorf San Cristóbal de las Casas Kaufbeuren Altenbrak Vöcklabruck Strawczyn Sankt Goarshausen Finsterbergen Izbica Długołęka Pińczów Dziemiany Stawiguda Mistelbach Stotternheim Rust Ansfelden Liezen Guamúchil 19th district of Budapest Popielów, Opole Voivodeship Setagaya-ku Finowfurt Rewal Orth an der Donau Ruda Śląska Zehlendorf Zeltweg Steinach Stockerau Bruck an der Leitha Nacka Kleszczów, Łódź Voivodeship Ciudad Obregón Ostrówek, Wieluń County Suwałki Hundested Hornburg Guadalajara East Norriton Township Gorzów Wielkopolski Chmielno Kirchdorf an der Krems Bad Ischl Los Mochis Mitte Franeker
Hamburg, Bremen and Toruń are the sister cities of min number of administrative country subdivisions and french administrative divisions
Hamburg Bremen Toruń
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation sister city
type human settlement
type type of french administrative division
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?n ) WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:sister_city ?h . ?h rdf:type ontology:human_settlement . ?c rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?h rdf:type ontology:human_settlement . ?c rdf:type ontology:type_of_french_administrative_division . ?c property:sister_city ?h } } GROUP BY ?h } . FILTER ( ?e = ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4866346 Q11754249
P20
Q56061
USER
Which administrative territories did Leon Gajewicz or Eduard Veterman expire ?
OR((Q11754249,P20,c(Q56061)), (Q4866346,P20,c(Q56061)))
action filter_type
action union
action find
entity Q11754249
relation P20
action find
entity Q4866346
relation P20
type Q56061
{'OR': [['Q11754249', 'P20', {'concept': 'Q56061'}], ['Q4866346', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q4866346 property:P20 ?p } UNION { resource:Q11754249 property:P20 ?p } } . ?p rdf:type ontology:Q56061 }
Eduard Veterman Leon Gajewicz
action filter_type
action union
action find
entity Leon Gajewicz
relation place of death
action find
entity Eduard Veterman
relation place of death
type administrative territorial entity
{'OR': [['Leon Gajewicz', 'place of death', {'concept': 'administrative territorial entity'}], ['Eduard Veterman', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Eduard_Veterman property:place_of_death ?p } UNION { resource:Leon_Gajewicz property:place_of_death ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q580 Q9945
SYSTEM
Łódź, Laren
Q580 Q9945
OR((Q11754249,P20,c(Q56061)), (Q4866346,P20,c(Q56061)))
action filter_type
action union
action find
entity Q11754249
relation P20
action find
entity Q4866346
relation P20
type Q56061
Leon Gajewicz or Eduard Veterman expired in [ANSWERS]
{'OR': [['Q11754249', 'P20', {'concept': 'Q56061'}], ['Q4866346', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q4866346 property:P20 ?p } UNION { resource:Q11754249 property:P20 ?p } } . ?p rdf:type ontology:Q56061 }
Łódź Laren
Leon Gajewicz or Eduard Veterman expired in Łódź and Laren
Łódź Laren
action filter_type
action union
action find
entity Leon Gajewicz
relation place of death
action find
entity Eduard Veterman
relation place of death
type administrative territorial entity
{'OR': [['Leon Gajewicz', 'place of death', {'concept': 'administrative territorial entity'}], ['Eduard Veterman', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Eduard_Veterman property:place_of_death ?p } UNION { resource:Leon_Gajewicz property:place_of_death ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have atleast 3 administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action atleast
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:P532 ?v . ?v rdf:type ontology:Q56061 . ?z rdf:type ontology:Q2235308 } GROUP BY ?z } . FILTER ( ?h >= 3 ) }
action atleast
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:port_of_registry ?v . ?v rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:ship_type } GROUP BY ?z } . FILTER ( ?h >= 3 ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action atleast
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[ANSWER] have atleast 3 administrative territories as their base harbour
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:P532 ?v . ?v rdf:type ontology:Q56061 . ?z rdf:type ontology:Q2235308 } GROUP BY ?z } . FILTER ( ?h >= 3 ) }
MS Arrow
MS Arrow have atleast 3 administrative territories as their base harbour
MS Arrow
action atleast
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?h ) WHERE { ?z property:port_of_registry ?v . ?v rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:ship_type } GROUP BY ?z } . FILTER ( ?h >= 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q580
P159
Q163740 Q375336
USER
How many nonprofit organizations and film studios have HQ at Łódź ?
(c(Q163740),P159,Q580) (c(Q375336),P159,Q580)
action count
action union
action filter_type
action find_reverse
entity Q580
relation P159
type Q163740
action filter_type
action find_reverse
entity Q580
relation P159
type Q375336
[{'concept': 'Q163740'}, 'P159', 'Q580'] [{'concept': 'Q375336'}, 'P159', 'Q580']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?x ) { ( ontology:Q163740 ) ( ontology:Q375336 ) } . ?d rdf:type ?x }
Łódź
action count
action union
action filter_type
action find_reverse
entity Łódź
relation headquarters location
type nonprofit organization
action filter_type
action find_reverse
entity Łódź
relation headquarters location
type film studio
[{'concept': 'nonprofit organization'}, 'headquarters location', 'Łódź'] [{'concept': 'film studio'}, 'headquarters location', 'Łódź']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?x ) { ( ontology:nonprofit_organization ) ( ontology:film_studio ) } . ?d rdf:type ?x }
[]
nonprofit organization film studio
SYSTEM
1 nonprofit organizations and 1 film studios
Q1856977 Q9346299
(c(Q163740),P159,Q580) (c(Q375336),P159,Q580)
action count
action union
action filter_type
action find_reverse
entity Q580
relation P159
type Q163740
action filter_type
action find_reverse
entity Q580
relation P159
type Q375336
[ANSWER]
[{'concept': 'Q163740'}, 'P159', 'Q580'] [{'concept': 'Q375336'}, 'P159', 'Q580']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?x ) { ( ontology:Q163740 ) ( ontology:Q375336 ) } . ?d rdf:type ?x }
Se-ma-for Wikimedia Poland
1 nonprofit organizations and 1 film studios
action count
action union
action filter_type
action find_reverse
entity Łódź
relation headquarters location
type nonprofit organization
action filter_type
action find_reverse
entity Łódź
relation headquarters location
type film studio
[{'concept': 'nonprofit organization'}, 'headquarters location', 'Łódź'] [{'concept': 'film studio'}, 'headquarters location', 'Łódź']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?x ) { ( ontology:nonprofit_organization ) ( ontology:film_studio ) } . ?d rdf:type ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1055
P1313
Q12737077
USER
What is the occupation held by Hamburg ?
(Q1055,P1313,c(Q12737077))
action filter_type
action find
entity Q1055
relation P1313
type Q12737077
['Q1055', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q1055 property:P1313 ?r }
Hamburg
action filter_type
action find
entity Hamburg
relation office held by head of government
type occupation
['Hamburg', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Hamburg property:office_held_by_head_of_government ?r }
[]
occupation
Q1362118
SYSTEM
First Mayor of Hamburg
Q1362118
(Q1055,P1313,c(Q12737077))
action filter_type
action find
entity Q1055
relation P1313
type Q12737077
The occupation held by Hamburg is the [ANSWER]
['Q1055', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q1055 property:P1313 ?r }
First Mayor of Hamburg
The occupation held by Hamburg is the First Mayor of Hamburg
First Mayor of Hamburg
action filter_type
action find
entity Hamburg
relation office held by head of government
type occupation
['Hamburg', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Hamburg property:office_held_by_head_of_government ?r }
[]