Simple Question (Direct)
Simple Question
Q2008
P81
Q83620
USER
Which thoroughfare does Gare de Lyon-Part-Dieu have a connection to ?
(Q2008,P81,c(Q83620))
action filter_type
action find
entity Q2008
relation P81
type Q83620
['Q2008', 'P81', {'concept': 'Q83620'}]
SELECT DISTINCT ?p WHERE { resource:Q2008 property:P81 ?p . ?p rdf:type ontology:Q83620 }
Gare de Lyon-Part-Dieu
action filter_type
action find
entity Gare de Lyon-Part-Dieu
relation connecting line
type thoroughfare
['Gare de Lyon-Part-Dieu', 'connecting line', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?p WHERE { resource:Gare_de_Lyon-Part-Dieu property:connecting_line ?p . ?p rdf:type ontology:thoroughfare }
[]
thoroughfare
Q661042
SYSTEM
Lyon–Geneva railway
Q661042
(Q2008,P81,c(Q83620))
action filter_type
action find
entity Q2008
relation P81
type Q83620
Gare de Lyon-Part-Dieu has a connection to de [ANSWER]
['Q2008', 'P81', {'concept': 'Q83620'}]
SELECT DISTINCT ?p WHERE { resource:Q2008 property:P81 ?p . ?p rdf:type ontology:Q83620 }
Lyon–Geneva railway
Gare de Lyon-Part-Dieu has a connection to de Lyon–Geneva railway
Lyon–Geneva railway
action filter_type
action find
entity Gare de Lyon-Part-Dieu
relation connecting line
type thoroughfare
['Gare de Lyon-Part-Dieu', 'connecting line', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?p WHERE { resource:Gare_de_Lyon-Part-Dieu property:connecting_line ?p . ?p rdf:type ontology:thoroughfare }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2008
P138
Q55488
USER
Which railway station is named after Gare de Lyon-Part-Dieu ?
(c(Q55488),P138,Q2008)
action filter_type
action find_reverse
entity Q2008
relation P138
type Q55488
[{'concept': 'Q55488'}, 'P138', 'Q2008']
SELECT DISTINCT ?a WHERE { ?a property:P138 resource:Q2008 . ?a rdf:type ontology:Q55488 }
Gare de Lyon-Part-Dieu
action filter_type
action find_reverse
entity Gare de Lyon-Part-Dieu
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'Gare de Lyon-Part-Dieu']
SELECT DISTINCT ?a WHERE { ?a property:named_after resource:Gare_de_Lyon-Part-Dieu . ?a rdf:type ontology:railway_station }
[]
railway station
Q1897991
SYSTEM
Gare Part-Dieu - Vivier Merle
Q1897991
(c(Q55488),P138,Q2008)
action filter_type
action find_reverse
entity Q2008
relation P138
type Q55488
[ANSWER] is named after Gare de Lyon-Part-Dieu
[{'concept': 'Q55488'}, 'P138', 'Q2008']
SELECT DISTINCT ?a WHERE { ?a property:P138 resource:Q2008 . ?a rdf:type ontology:Q55488 }
Gare Part-Dieu - Vivier Merle
Gare Part-Dieu - Vivier Merle is named after Gare de Lyon-Part-Dieu
Gare Part-Dieu - Vivier Merle
action filter_type
action find_reverse
entity Gare de Lyon-Part-Dieu
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'Gare de Lyon-Part-Dieu']
SELECT DISTINCT ?a WHERE { ?a property:named_after resource:Gare_de_Lyon-Part-Dieu . ?a rdf:type ontology:railway_station }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2008
P361
Q83620
USER
What is Gare de Lyon-Part-Dieu a portion of ?
(Q2008,P361,c(Q83620))
action filter_type
action find
entity Q2008
relation P361
type Q83620
['Q2008', 'P361', {'concept': 'Q83620'}]
SELECT DISTINCT ?n WHERE { resource:Q2008 property:P361 ?n . ?n rdf:type ontology:Q83620 }
Gare de Lyon-Part-Dieu
action filter_type
action find
entity Gare de Lyon-Part-Dieu
relation part of
type thoroughfare
['Gare de Lyon-Part-Dieu', 'part of', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?n WHERE { resource:Gare_de_Lyon-Part-Dieu property:part_of ?n . ?n rdf:type ontology:thoroughfare }
[]
thoroughfare
Q661042
SYSTEM
Lyon–Geneva railway
Q661042
(Q2008,P361,c(Q83620))
action filter_type
action find
entity Q2008
relation P361
type Q83620
Gare de Lyon-Part-Dieu is a portion of de [ANSWER]
['Q2008', 'P361', {'concept': 'Q83620'}]
SELECT DISTINCT ?n WHERE { resource:Q2008 property:P361 ?n . ?n rdf:type ontology:Q83620 }
Lyon–Geneva railway
Gare de Lyon-Part-Dieu is a portion of de Lyon–Geneva railway
Lyon–Geneva railway
action filter_type
action find
entity Gare de Lyon-Part-Dieu
relation part of
type thoroughfare
['Gare de Lyon-Part-Dieu', 'part of', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?n WHERE { resource:Gare_de_Lyon-Part-Dieu property:part_of ?n . ?n rdf:type ontology:thoroughfare }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3097760
Q83620
USER
And also tell me about Solana Beach?
(Q3097760,P361,c(Q83620))
action filter_type
action find
entity Q3097760
relation P361
type Q83620
['Q3097760', 'P361', {'concept': 'Q83620'}]
SELECT DISTINCT ?g WHERE { resource:Q3097760 property:P361 ?g . ?g rdf:type ontology:Q83620 }
Solana Beach
action filter_type
action find
entity Solana Beach
relation part of
type thoroughfare
['Solana Beach', 'part of', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?g WHERE { resource:Solana_Beach property:part_of ?g . ?g rdf:type ontology:thoroughfare }
[]
thoroughfare
Q847589
SYSTEM
Pacific Surfliner
Q847589
(Q3097760,P361,c(Q83620))
action filter_type
action find
entity Q3097760
relation P361
type Q83620
[ANSWER]
['Q3097760', 'P361', {'concept': 'Q83620'}]
SELECT DISTINCT ?g WHERE { resource:Q3097760 property:P361 ?g . ?g rdf:type ontology:Q83620 }
Pacific Surfliner
Pacific Surfliner
action filter_type
action find
entity Solana Beach
relation part of
type thoroughfare
['Solana Beach', 'part of', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?g WHERE { resource:Solana_Beach property:part_of ?g . ?g rdf:type ontology:thoroughfare }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q727
P559
Q56061 Q83620
USER
Which administrative territories serve as the endpoint for around the same number of thoroughfares as Amsterdam ?
(c(Q83620),P559,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_type
action find
entity Q727
relation P559
type Q56061
[{'concept': 'Q83620'}, 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:P559 ?v . ?v rdf:type ontology:Q56061 . ?e rdf:type ontology:Q83620 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { ?m rdf:type ontology:Q56061 . resource:Q727 property:P559 ?m } } . FILTER ( ?q = ?y ) }
Amsterdam
action approx
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_type
action find
entity Amsterdam
relation terminus
type administrative territorial entity
[{'concept': 'thoroughfare'}, 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:terminus ?v . ?v rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:thoroughfare } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Amsterdam property:terminus ?m } } . FILTER ( ?q = ?y ) }
[]
administrative territorial entity thoroughfare
Q65 Q727 Q33959
SYSTEM
Los Angeles, Amsterdam, Nice
Q3051477 Q1020217 Q3112707 Q837211 Q3812238 Q69639 Q375314 Q12439 Q2814 Q541055 Q82490 Q4825403 Q172157 Q575557 Q985313 Q687333 Q932159 Q3469728 Q796625 Q185453 Q588804 Q130191 Q5902931 Q723372 Q167155 Q2272 Q7811572 Q7651719 Q134620 Q992420 Q556989 Q1011611 Q727 Q2065223 Q42159 Q7986745 Q1009428 Q1011221 Q7050868 Q24826 Q6509 Q28327 Q5477618 Q5032535 Q4356873 Q33959 Q11839080 Q586 Q585 Q1017331 Q35433 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q49218 Q100 Q2734845 Q6820370 Q1020951 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q190847 Q1248150 Q2073801 Q1781385 Q1759693 Q2300663 Q2703030 Q794802 Q646784 Q79499 Q6275457 Q375905 Q10561690 Q643160 Q1735 Q17872 Q129610 Q766594 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q2290 Q12191 Q237253 Q485186 Q634172 Q522362 Q1729 Q790938 Q865872 Q65
(c(Q83620),P559,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_type
action find
entity Q727
relation P559
type Q56061
[ANSWERS] serve as the endpoint for around the same number of thoroughfares as Amsterdam
[{'concept': 'Q83620'}, 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:P559 ?v . ?v rdf:type ontology:Q56061 . ?e rdf:type ontology:Q83620 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { ?m rdf:type ontology:Q56061 . resource:Q727 property:P559 ?m } } . FILTER ( ?q = ?y ) }
Ellewoutsdijk Minehead Sedbury Scheveningen Bronygarth Göschenen Folkestone Detroit Halle (Saale) Oijen Lyme Regis Austrepollen Winchester Grand Tower Ingleton Middleton-by-Wirksworth Hart Salford Quays Edale Multan Badrinath Norwich Horda, Norway Narva-Jõesuu Kalamazoo Skien Tobermory, Ontario Svartnes Jyväskylä Fjærland Ankeny Portpatrick Amsterdam Port Grimaud Hanam West Vale Drymen Kincardine Nordrepollen Liverpool Burgas Örnsköldsvik Frafjord Cann River Mariehäll Nice Akdere, Silifke Bonn Oslo Westport, County Mayo Saint-Rhémy-en-Bosses Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Rochester Boston Henley-in-Arden Merritton, Ontario Ilkley Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Alexandroupoli Wallsend Helmsley Björkhagen South Boston Gaylord Kilsby Otira Moffat Helena Jong, Norway Deerfield Lilla Alby Farnham Innsbruck Alice Springs Galway Bewdley Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Porsgrunn Nantes Great Yarmouth Key West Banihal Bad Säckingen Erfurt Aviemore Birstall Los Angeles
Los Angeles, Amsterdam and Nice serve as the endpoint for around the same number of thoroughfares as Amsterdam
Los Angeles Amsterdam Nice
action approx
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_type
action find
entity Amsterdam
relation terminus
type administrative territorial entity
[{'concept': 'thoroughfare'}, 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:terminus ?v . ?v rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:thoroughfare } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Amsterdam property:terminus ?m } } . FILTER ( ?q = ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q794802
P559
Q56061 Q83620
USER
And also tell me about Otira?
(c(Q83620),P559,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_type
action find
entity Q794802
relation P559
type Q56061
[{'concept': 'Q83620'}, 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:P559 ?o . ?o rdf:type ontology:Q56061 . ?a rdf:type ontology:Q83620 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q794802 property:P559 ?p . ?p rdf:type ontology:Q56061 } } . FILTER ( ?b = ?w ) }
Otira
action approx
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_type
action find
entity Otira
relation terminus
type administrative territorial entity
[{'concept': 'thoroughfare'}, 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:terminus ?o . ?o rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:thoroughfare } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Otira property:terminus ?p . ?p rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?b = ?w ) }
[]
administrative territorial entity thoroughfare
Q65 Q727 Q33959
SYSTEM
Los Angeles, Amsterdam, Nice
Q3051477 Q1020217 Q3112707 Q837211 Q3812238 Q69639 Q375314 Q12439 Q2814 Q541055 Q82490 Q4825403 Q172157 Q575557 Q985313 Q687333 Q932159 Q3469728 Q796625 Q185453 Q588804 Q130191 Q5902931 Q723372 Q167155 Q2272 Q7811572 Q7651719 Q134620 Q992420 Q556989 Q1011611 Q727 Q2065223 Q42159 Q7986745 Q1009428 Q1011221 Q7050868 Q24826 Q6509 Q28327 Q5477618 Q5032535 Q4356873 Q33959 Q11839080 Q586 Q585 Q1017331 Q35433 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q49218 Q100 Q2734845 Q6820370 Q1020951 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q190847 Q1248150 Q2073801 Q1781385 Q1759693 Q2300663 Q2703030 Q794802 Q646784 Q79499 Q6275457 Q375905 Q10561690 Q643160 Q1735 Q17872 Q129610 Q766594 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q2290 Q12191 Q237253 Q485186 Q634172 Q522362 Q1729 Q790938 Q865872 Q65
(c(Q83620),P559,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action count
action filter_type
action find
entity Q794802
relation P559
type Q56061
[ANSWERS]
[{'concept': 'Q83620'}, 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:P559 ?o . ?o rdf:type ontology:Q56061 . ?a rdf:type ontology:Q83620 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q794802 property:P559 ?p . ?p rdf:type ontology:Q56061 } } . FILTER ( ?b = ?w ) }
Ellewoutsdijk Minehead Sedbury Scheveningen Bronygarth Göschenen Folkestone Detroit Halle (Saale) Oijen Lyme Regis Austrepollen Winchester Grand Tower Ingleton Middleton-by-Wirksworth Hart Salford Quays Edale Multan Badrinath Norwich Horda, Norway Narva-Jõesuu Kalamazoo Skien Tobermory, Ontario Svartnes Jyväskylä Fjærland Ankeny Portpatrick Amsterdam Port Grimaud Hanam West Vale Drymen Kincardine Nordrepollen Liverpool Burgas Örnsköldsvik Frafjord Cann River Mariehäll Nice Akdere, Silifke Bonn Oslo Westport, County Mayo Saint-Rhémy-en-Bosses Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Rochester Boston Henley-in-Arden Merritton, Ontario Ilkley Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Alexandroupoli Wallsend Helmsley Björkhagen South Boston Gaylord Kilsby Otira Moffat Helena Jong, Norway Deerfield Lilla Alby Farnham Innsbruck Alice Springs Galway Bewdley Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Porsgrunn Nantes Great Yarmouth Key West Banihal Bad Säckingen Erfurt Aviemore Birstall Los Angeles
Los Angeles Amsterdam Nice
action approx
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action count
action filter_type
action find
entity Otira
relation terminus
type administrative territorial entity
[{'concept': 'thoroughfare'}, 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:terminus ?o . ?o rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:thoroughfare } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Otira property:terminus ?p . ?p rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?b = ?w ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q65 Q727 Q33959
P190
Q56061
USER
Which administrative territories are partner town of those ones ?
(c(Q56061),P190,Q65) (c(Q56061),P190,Q727) (c(Q56061),P190,Q33959)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q65'] [{'concept': 'Q56061'}, 'P190', 'Q727'] [{'concept': 'Q56061'}, 'P190', 'Q33959']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?b property:P190 ?n . VALUES ( ?n ) { ( resource:Q3051477 ) ( resource:Q1020217 ) ( resource:Q3112707 ) } }
Los Angeles Amsterdam Nice
action filter_type
action find_reverse
entity prev_answer
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Los Angeles'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Amsterdam'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Nice']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?b property:sister_city ?n . VALUES ( ?n ) { ( resource:Ellewoutsdijk ) ( resource:Minehead ) ( resource:Sedbury ) } }
[]
administrative territorial entity
Q649 Q8678 Q8678
SYSTEM
Rio de Janeiro for 2nd, 3rd, Moscow for 1st
Q1524 Q938802 Q124739 Q24639 Q340 Q171639 Q3630 Q612 Q23564 Q134762 Q1156 Q81788 Q3881 Q4115712 Q37100 Q64 Q1867 Q1489 Q3820 Q84 Q18125 Q1479 Q1524 Q956 Q6506 Q340 Q649 Q3630 Q3561 Q132679 Q3274 Q211563 Q51103 Q406 Q18125 Q3856 Q8678 Q17151 Q23436 Q641 Q128499 Q14328 Q5465 Q340757 Q192225 Q3825 Q2090 Q8678 Q11959
(c(Q56061),P190,Q65) (c(Q56061),P190,Q727) (c(Q56061),P190,Q33959)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P190', 'Q65'] [{'concept': 'Q56061'}, 'P190', 'Q727'] [{'concept': 'Q56061'}, 'P190', 'Q33959']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?b property:P190 ?n . VALUES ( ?n ) { ( resource:Q3051477 ) ( resource:Q1020217 ) ( resource:Q3112707 ) } }
Athens Santa Maria degli Angeli Tijuana Vancouver Montreal Ashdod Jakarta Dubai Podgorica Eilat Mumbai Giza Lusaka Kaunas Auckland Berlin Taipei Mexico City Beirut London Manchester Bordeaux Athens Beijing Varna Montreal Moscow Jakarta Algiers Willemstad Managua Beira Cali Istanbul Manchester Nicosia Rio de Janeiro Thessaloniki Edinburgh Venice Yalta Santa Cruz de Tenerife Cape Town La Maddalena Netanya Libreville Nuremberg Rio de Janeiro Alicante
Moscow, Rio de Janeiro and Rio de Janeiro are partner town of those ones
Moscow Rio de Janeiro Rio de Janeiro
action filter_type
action find_reverse
entity prev_answer
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Los Angeles'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Amsterdam'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Nice']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?b property:sister_city ?n . VALUES ( ?n ) { ( resource:Ellewoutsdijk ) ( resource:Minehead ) ( resource:Sedbury ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q649
P166
Q618779
USER
What was awarded to that administrative territory ?
(Q649,P166,c(Q618779))
action filter_type
action find
entity Q649
relation P166
type Q618779
['Q649', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q649 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Moscow
action filter_type
action find
entity Moscow
relation award received
type award
['Moscow', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Moscow property:award_received ?w . ?w rdf:type ontology:award }
[]
award
Clarification for simple ques.
Q8678
SYSTEM
Did you mean Rio de Janeiro ?
Q649 Q8678 Q8678
(Q649,P166,c(Q618779)) (Q8678,P166,c(Q618779)) (Q8678,P166,c(Q618779))
[ANSWER]
['Q649', 'P166', {'concept': 'Q618779'}] ['Q8678', 'P166', {'concept': 'Q618779'}] ['Q8678', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q649 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Moscow Rio de Janeiro Rio de Janeiro
Did you mean Rio de Janeiro ?
Rio de Janeiro
['Moscow', 'award received', {'concept': 'award'}] ['Rio de Janeiro', 'award received', {'concept': 'award'}] ['Rio de Janeiro', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Moscow property:award_received ?w . ?w rdf:type ontology:award }
[]
Simple Question (Coreferenced)
USER
No, I meant Moscow. Could you tell me the answer for that?
(Q649,P166,c(Q618779))
Q649
['Q649', 'P166', {'concept': 'Q618779'}]
['Moscow', 'award received', {'concept': 'award'}]
[]
Q159438
SYSTEM
Hero City
Q159438
(Q649,P166,c(Q618779))
action filter_type
action find
entity Q649
relation P166
type Q618779
[ANSWER] was awarded to that administrative territory
['Q649', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q649 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Hero City
Hero City was awarded to that administrative territory
Hero City
action filter_type
action find
entity Moscow
relation award received
type award
['Moscow', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Moscow property:award_received ?w . ?w rdf:type ontology:award }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P84
Q4830453 Q502895 Q55488
USER
Which railway stations have their designs created by min number of business enterprises or people ?
(c(Q55488),P84,c(Q4830453)|c(Q502895))
action argmin
action union
action find_tuple_counts
relation P84
type Q55488
type Q4830453
action find_tuple_counts
relation P84
type Q55488
type Q502895
[{'concept': 'Q55488'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?o ) WHERE { { ?e property:P84 ?b . ?e rdf:type ontology:Q55488 . ?b rdf:type ontology:Q4830453 } UNION { ?e rdf:type ontology:Q55488 . ?b rdf:type ontology:Q502895 . ?e property:P84 ?b } } GROUP BY ?e } } . FILTER ( ?p = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?p ) WHERE { { ?z rdf:type ontology:Q55488 . ?m rdf:type ontology:Q502895 . ?z property:P84 ?m } UNION { ?z property:P84 ?m . ?z rdf:type ontology:Q55488 . ?m rdf:type ontology:Q4830453 } } GROUP BY ?z } }
action argmin
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
[{'concept': 'railway station'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?o ) WHERE { { ?e property:architect ?b . ?e rdf:type ontology:railway_station . ?b rdf:type ontology:business_enterprise } UNION { ?e rdf:type ontology:railway_station . ?b rdf:type ontology:common_name . ?e property:architect ?b } } GROUP BY ?e } } . FILTER ( ?p = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?p ) WHERE { { ?z rdf:type ontology:railway_station . ?m rdf:type ontology:common_name . ?z property:architect ?m } UNION { ?z property:architect ?m . ?z rdf:type ontology:railway_station . ?m rdf:type ontology:business_enterprise } } GROUP BY ?z } }
[]
business enterprise common name railway station
Q2169211 Q640755 Q2097912
SYSTEM
Wilhelminaplein, Vasileostrovskaya, Vijfsluizen
Q2097912 Q1702643 Q2711214 Q1180127 Q640755 Q1550415 Q1798572 Q2169211
(c(Q55488),P84,c(Q4830453)|c(Q502895))
action argmin
action union
action find_tuple_counts
relation P84
type Q55488
type Q4830453
action find_tuple_counts
relation P84
type Q55488
type Q502895
[ANSWERS] have their designs created by min number of business enterprises or people
[{'concept': 'Q55488'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?o ) WHERE { { ?e property:P84 ?b . ?e rdf:type ontology:Q55488 . ?b rdf:type ontology:Q4830453 } UNION { ?e rdf:type ontology:Q55488 . ?b rdf:type ontology:Q502895 . ?e property:P84 ?b } } GROUP BY ?e } } . FILTER ( ?p = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?p ) WHERE { { ?z rdf:type ontology:Q55488 . ?m rdf:type ontology:Q502895 . ?z property:P84 ?m } UNION { ?z property:P84 ?m . ?z rdf:type ontology:Q55488 . ?m rdf:type ontology:Q4830453 } } GROUP BY ?z } }
Vijfsluizen Jolicoeur Yelizarovskaya De L'Église Vasileostrovskaya Monk LaSalle Wilhelminaplein
Wilhelminaplein, Vasileostrovskaya and Vijfsluizen have their designs created by min number of business enterprises or people
Wilhelminaplein Vasileostrovskaya Vijfsluizen
action argmin
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
[{'concept': 'railway station'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?o ) WHERE { { ?e property:architect ?b . ?e rdf:type ontology:railway_station . ?b rdf:type ontology:business_enterprise } UNION { ?e rdf:type ontology:railway_station . ?b rdf:type ontology:common_name . ?e property:architect ?b } } GROUP BY ?e } } . FILTER ( ?p = ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?p ) WHERE { { ?z rdf:type ontology:railway_station . ?m rdf:type ontology:common_name . ?z property:architect ?m } UNION { ?z property:architect ?m . ?z rdf:type ontology:railway_station . ?m rdf:type ontology:business_enterprise } } GROUP BY ?z } }
[]