Simple Question (Direct)
Simple Question
Q1078958
P19
Q56061
USER
Which administrative territory was Christian Bermes born at ?
(Q1078958,P19,c(Q56061))
action filter_type
action find
entity Q1078958
relation P19
type Q56061
['Q1078958', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q1078958 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Christian Bermes
action filter_type
action find
entity Christian Bermes
relation place of birth
type administrative territorial entity
['Christian Bermes', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Christian_Bermes property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3138
SYSTEM
Trier
Q3138
(Q1078958,P19,c(Q56061))
action filter_type
action find
entity Q1078958
relation P19
type Q56061
Christian Bermes was born in [ANSWER]
['Q1078958', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q1078958 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Trier
Christian Bermes was born in Trier
Trier
action filter_type
action find
entity Christian Bermes
relation place of birth
type administrative territorial entity
['Christian Bermes', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Christian_Bermes property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1078958
P106
Q12737077
USER
Which occupation is the profession of Christian Bermes ?
(Q1078958,P106,c(Q12737077))
action filter_type
action find
entity Q1078958
relation P106
type Q12737077
['Q1078958', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q1078958 property:P106 ?v }
Christian Bermes
action filter_type
action find
entity Christian Bermes
relation occupation
type occupation
['Christian Bermes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Christian_Bermes property:occupation ?v }
[]
occupation
Q1622272
SYSTEM
university teacher
Q1622272
(Q1078958,P106,c(Q12737077))
action filter_type
action find
entity Q1078958
relation P106
type Q12737077
The [ANSWER] is the profession of Christian Bermes
['Q1078958', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q1078958 property:P106 ?v }
university teacher
The university teacher is the profession of Christian Bermes
university teacher
action filter_type
action find
entity Christian Bermes
relation occupation
type occupation
['Christian Bermes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Christian_Bermes property:occupation ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5277822
Q12737077
USER
And also tell me about Din Mohammad?
(Q5277822,P106,c(Q12737077))
action filter_type
action find
entity Q5277822
relation P106
type Q12737077
['Q5277822', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5277822 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Din Mohammad
action filter_type
action find
entity Din Mohammad
relation occupation
type occupation
['Din Mohammad', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Din_Mohammad property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5277822,P106,c(Q12737077))
action filter_type
action find
entity Q5277822
relation P106
type Q12737077
[ANSWER]
['Q5277822', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5277822 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
politician
politician
action filter_type
action find
entity Din Mohammad
relation occupation
type occupation
['Din Mohammad', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Din_Mohammad property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q3262694
P106
Q502895
USER
Does Louis Mhlanga have career as that occupation ?
(Q3262694,P106,Q82955)
action is_in
entity Q3262694
action find
entity Q82955
relation P106
['Q3262694', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q3262694 }
politician Louis Mhlanga
action is_in
entity Louis Mhlanga
action find
entity politician
relation occupation
['Louis Mhlanga', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Louis_Mhlanga }
[]
common name
SYSTEM
NO
(Q3262694,P106,Q82955)
action is_in
entity Q3262694
action find
entity Q82955
relation P106
[ANSWER]
['Q3262694', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q3262694 }
No
action is_in
entity Louis Mhlanga
action find
entity politician
relation occupation
['Louis Mhlanga', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Louis_Mhlanga }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1622272 Q24192586
P417
Q502895
USER
Is Percy Ashburnham the name of person who is the patron saint of university teacher ?
(Q1622272,P417,Q24192586)
action is_in
entity Q24192586
action find
entity Q1622272
relation P417
['Q1622272', 'P417', 'Q24192586']
ASK WHERE { resource:Q1622272 property:P417 resource:Q24192586 }
university teacher Percy Ashburnham
action is_in
entity Percy Ashburnham
action find
entity university teacher
relation patron saint
['university teacher', 'patron saint', 'Percy Ashburnham']
ASK WHERE { resource:university_teacher property:patron_saint resource:Percy_Ashburnham }
[]
common name
SYSTEM
NO
(Q1622272,P417,Q24192586)
action is_in
entity Q24192586
action find
entity Q1622272
relation P417
[ANSWER]
['Q1622272', 'P417', 'Q24192586']
ASK WHERE { resource:Q1622272 property:P417 resource:Q24192586 }
No
action is_in
entity Percy Ashburnham
action find
entity university teacher
relation patron saint
['university teacher', 'patron saint', 'Percy Ashburnham']
ASK WHERE { resource:university_teacher property:patron_saint resource:Percy_Ashburnham }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P291
Q56061 Q571 Q2342494
USER
Which administrative territories were min number of books and collectables published ?
(c(Q571)|c(Q2342494),P291,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
[[{'concept': 'Q571'}, {'concept': 'Q2342494'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?j WHERE { VALUES ( ?i ) { ( ontology:Q571 ) ( ontology:Q2342494 ) } . ?h rdf:type ?i } GROUP BY ?j } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( MIN ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?c WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q571 ) } . ?g rdf:type ?x } GROUP BY ?c } } }
action argmin
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
[[{'concept': 'book'}, {'concept': 'collectable'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?j WHERE { VALUES ( ?i ) { ( ontology:book ) ( ontology:collectable ) } . ?h rdf:type ?i } GROUP BY ?j } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( MIN ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?c WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:book ) } . ?g rdf:type ?x } GROUP BY ?c } } }
[]
administrative territorial entity book collectable
Q406 Q956 Q1489
SYSTEM
Istanbul, Beijing, Mexico City
Q2536016 Q190583 Q2035368 Q3897 Q38511 Q130191 Q203619 Q80670 Q1544563 Q490595 Q11974 Q36378 Q10305 Q3404679 Q8692 Q23051 Q2656 Q4581188 Q8851 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q99151 Q39561 Q48329 Q7880 Q1930 Q949651 Q5831 Q22889 Q132572 Q6157 Q12411 Q1718 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1034159 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q1489 Q2020203 Q406 Q15468 Q6346 Q887 Q54217 Q1679567 Q15093 Q162279 Q17151 Q1191195 Q102217 Q237 Q16554 Q16555 Q16557 Q486306 Q1513 Q1296 Q1563 Q35381 Q1024911 Q193478 Q11959 Q35493 Q78 Q37100 Q38022 Q286048 Q1235510 Q15678 Q3183 Q172157 Q33935 Q582121 Q1861 Q14318 Q14314 Q15090 Q134620 Q956 Q15095 Q15098 Q437 Q8745 Q13580 Q2766547 Q2941325 Q12258 Q202158 Q1017331 Q49145 Q327022 Q12225 Q23154 Q10282 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q6576 Q9580 Q8356 Q735583 Q1724 Q11967 Q159232 Q207891 Q3395358 Q683512 Q3889 Q9125 Q5818 Q204382 Q27393 Q126148 Q771986 Q33405 Q79990 Q6537 Q10313 Q1295 Q59169 Q669171 Q204720 Q206988 Q3012 Q15699 Q485329 Q15695 Q985271 Q28848 Q15088 Q3366952 Q213898 Q193180 Q8757 Q47048 Q178277 Q192155 Q883 Q125080 Q12303 Q156990 Q40840 Q955640 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q646620 Q720627 Q215277 Q8826 Q14336 Q34647
(c(Q571)|c(Q2342494),P291,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
[ANSWERS] were min number of books and collectables published
[[{'concept': 'Q571'}, {'concept': 'Q2342494'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?j WHERE { VALUES ( ?i ) { ( ontology:Q571 ) ( ontology:Q2342494 ) } . ?h rdf:type ?i } GROUP BY ?j } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( MIN ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?c WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q571 ) } . ?g rdf:type ?x } GROUP BY ?c } } }
Crickhowell Mikkeli Tremadog Luanda Turku Norwich Kemi Mühlacker Hellerup Daytona Beach Las Palmas de Gran Canaria Fribourg Zaragoza Crumlin Bilbao Swansea Palermo Straume Málaga Ávila Soria Nampula Cádiz Segovia Gloucester Ourense Burbank Mariehamn Toulouse Ottawa Wilmington Melilla Bath Tiraspol Seinäjoki Pontevedra Düsseldorf Lugo Granada Elverum Alcones Caernarfon Montevideo Harstad Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Mexico City Rhyl Istanbul Badalona Indianapolis Yekaterinburg Norwalk Jakobstad Ciudad Real Kuopio Thessaloniki Mold Vitebsk Vatican City Denver Houston Dallas Pensacola Nagpur Ghent Havana Colombo Welshpool Buda Alicante Almaty Basel Auckland St. Louis New Glasgow, Nova Scotia Dolgellau Cáceres Perth Winchester Tel Aviv Bradenton Bangkok Vitoria-Gasteiz Santiago de Compostela Lleida Jyväskylä Beijing Albacete Cuenca Ljubljana Vigo Metro Manila 's-Hertogenbosch Corbin Sabadell Hämeenlinna Westport, County Mayo New Haven Rockville Murcia Bristol Pamplona Sereď Barmouth Sunderland Padua Conwy Sofia Irkutsk Burgos Valladolid Ylivieska Saarbrücken Huesca Santa Cruz Kokkola Kidwelly Savonlinna Maputo Winterthur Córdoba Kouvola Herning Tangier Chepstow Little Rock Christchurch Vicenza Donostia/San Sebastián Dortmund Mo i Rana Newtown Hereford Cheltenham Ulm León Ferrol Salamanca The Dalles Saint Paul Tarragona Alta Preveza Kajaani A Coruña Oulu Montvale Kotka Novosibirsk Vaasa Jerez de la Frontera Monmouth Tampere Glasgow Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Estella-Lizarra Kanhangad Jaffna Palma Teruel Johannesburg
Istanbul, Beijing and Mexico City were min number of books and collectables published
Istanbul Beijing Mexico City
action argmin
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
[[{'concept': 'book'}, {'concept': 'collectable'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?j WHERE { VALUES ( ?i ) { ( ontology:book ) ( ontology:collectable ) } . ?h rdf:type ?i } GROUP BY ?j } . FILTER ( ?q = ?t ) . { SELECT DISTINCT ( MIN ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?c WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:book ) } . ?g rdf:type ?x } GROUP BY ?c } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5087
P190
Q56061
USER
Are Siliguri partner town of those ones ?
(Q5087,P190,Q406) (Q5087,P190,Q956) (Q5087,P190,Q1489)
action is_in
entity prev_answer
action find
entity Q5087
relation P190
['Q5087', 'P190', 'Q406'] ['Q5087', 'P190', 'Q956'] ['Q5087', 'P190', 'Q1489']
ASK WHERE { resource:Q5087 property:P190 ?k . VALUES ( ?k ) { ( resource:Q2536016 ) ( resource:Q190583 ) ( resource:Q2035368 ) } }
Siliguri
action is_in
entity prev_answer
action find
entity Siliguri
relation sister city
['Siliguri', 'sister city', 'Istanbul'] ['Siliguri', 'sister city', 'Beijing'] ['Siliguri', 'sister city', 'Mexico City']
ASK WHERE { resource:Siliguri property:sister_city ?k . VALUES ( ?k ) { ( resource:Crickhowell ) ( resource:Mikkeli ) ( resource:Tremadog ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q5087,P190,Q406) (Q5087,P190,Q956) (Q5087,P190,Q1489)
action is_in
entity prev_answer
action find
entity Q5087
relation P190
[ANSWER]
['Q5087', 'P190', 'Q406'] ['Q5087', 'P190', 'Q956'] ['Q5087', 'P190', 'Q1489']
ASK WHERE { resource:Q5087 property:P190 ?k . VALUES ( ?k ) { ( resource:Q2536016 ) ( resource:Q190583 ) ( resource:Q2035368 ) } }
No
action is_in
entity prev_answer
action find
entity Siliguri
relation sister city
['Siliguri', 'sister city', 'Istanbul'] ['Siliguri', 'sister city', 'Beijing'] ['Siliguri', 'sister city', 'Mexico City']
ASK WHERE { resource:Siliguri property:sister_city ?k . VALUES ( ?k ) { ( resource:Crickhowell ) ( resource:Mikkeli ) ( resource:Tremadog ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q956
P609
Q34442
USER
Which roads are Beijing a destination for ?
(c(Q34442),P609,Q956)
action filter_type
action find_reverse
entity Q956
relation P609
type Q34442
[{'concept': 'Q34442'}, 'P609', 'Q956']
SELECT DISTINCT ?o WHERE { ?o property:P609 resource:Q956 . ?o rdf:type ontology:Q34442 }
Beijing
action filter_type
action find_reverse
entity Beijing
relation terminus location
type road
[{'concept': 'road'}, 'terminus location', 'Beijing']
SELECT DISTINCT ?o WHERE { ?o property:terminus_location resource:Beijing . ?o rdf:type ontology:road }
[]
road
Q834122 Q179002 Q785361
SYSTEM
Jingjintang Expressway, G1 Beijing–Harbin Expressway, G4 Beijing–Hong Kong–Macau Expressway
Q834122 Q785371 Q16078374 Q785394 Q10883203 Q785383 Q785393 Q179002 Q785361 Q785374
(c(Q34442),P609,Q956)
action filter_type
action find_reverse
entity Q956
relation P609
type Q34442
[ANSWERS]
[{'concept': 'Q34442'}, 'P609', 'Q956']
SELECT DISTINCT ?o WHERE { ?o property:P609 resource:Q956 . ?o rdf:type ontology:Q34442 }
Jingjintang Expressway G6 Beijing–Lhasa Expressway G1N Beijing–Qinhuangdao Expressway G7 Beijing–Ürümqi Expressway Beijing–Tianjin Expressway G2 Beijing–Shanghai Expressway G3 Beijing–Taipei Expressway G1 Beijing–Harbin Expressway G4 Beijing–Hong Kong–Macau Expressway G5 Beijing–Kunming Expressway
Which roads are Beijing a destination for
Jingjintang Expressway G1 Beijing–Harbin Expressway G4 Beijing–Hong Kong–Macau Expressway
action filter_type
action find_reverse
entity Beijing
relation terminus location
type road
[{'concept': 'road'}, 'terminus location', 'Beijing']
SELECT DISTINCT ?o WHERE { ?o property:terminus_location resource:Beijing . ?o rdf:type ontology:road }
[]
Clarification
Simple Question|Single Entity|Indirect
Q179002
P361
Q34442
USER
Which road is a portion of that one ?
(c(Q34442),P361,Q179002)
action filter_type
action find_reverse
entity Q179002
relation P361
type Q34442
[{'concept': 'Q34442'}, 'P361', 'Q179002']
SELECT DISTINCT ?n WHERE { ?n property:P361 resource:Q179002 . ?n rdf:type ontology:Q34442 }
G1 Beijing–Harbin Expressway
action filter_type
action find_reverse
entity G1 Beijing–Harbin Expressway
relation part of
type road
[{'concept': 'road'}, 'part of', 'G1 Beijing–Harbin Expressway']
SELECT DISTINCT ?n WHERE { ?n property:part_of resource:G1_Beijing–Harbin_Expressway . ?n rdf:type ontology:road }
[]
road
Clarification for simple ques.
Q834122
SYSTEM
Did you mean Jingjintang Expressway ?
Q834122 Q179002 Q785361
(c(Q34442),P361,Q834122) (c(Q34442),P361,Q179002) (c(Q34442),P361,Q785361)
[ANSWER]
[{'concept': 'Q34442'}, 'P361', 'Q834122'] [{'concept': 'Q34442'}, 'P361', 'Q179002'] [{'concept': 'Q34442'}, 'P361', 'Q785361']
SELECT DISTINCT ?n WHERE { ?n property:P361 resource:Q179002 . ?n rdf:type ontology:Q34442 }
Jingjintang Expressway G1 Beijing–Harbin Expressway G4 Beijing–Hong Kong–Macau Expressway
Did you mean Jingjintang Expressway ?
Jingjintang Expressway
[{'concept': 'road'}, 'part of', 'Jingjintang Expressway'] [{'concept': 'road'}, 'part of', 'G1 Beijing–Harbin Expressway'] [{'concept': 'road'}, 'part of', 'G4 Beijing–Hong Kong–Macau Expressway']
SELECT DISTINCT ?n WHERE { ?n property:part_of resource:G1_Beijing–Harbin_Expressway . ?n rdf:type ontology:road }
[]
Simple Question (Coreferenced)
USER
No, I meant G1 Beijing–Harbin Expressway. Could you tell me the answer for that?
(c(Q34442),P361,Q179002)
Q179002
[{'concept': 'Q34442'}, 'P361', 'Q179002']
[{'concept': 'road'}, 'part of', 'G1 Beijing–Harbin Expressway']
[]
Q835589
SYSTEM
Jing - Shenyang Expressway
Q835589
(c(Q34442),P361,Q179002)
action filter_type
action find_reverse
entity Q179002
relation P361
type Q34442
[ANSWER] is a portion of that one
[{'concept': 'Q34442'}, 'P361', 'Q179002']
SELECT DISTINCT ?n WHERE { ?n property:P361 resource:Q179002 . ?n rdf:type ontology:Q34442 }
Jing - Shenyang Expressway
Jing - Shenyang Expressway is a portion of that one
Jing - Shenyang Expressway
action filter_type
action find_reverse
entity G1 Beijing–Harbin Expressway
relation part of
type road
[{'concept': 'road'}, 'part of', 'G1 Beijing–Harbin Expressway']
SELECT DISTINCT ?n WHERE { ?n property:part_of resource:G1_Beijing–Harbin_Expressway . ?n rdf:type ontology:road }
[]