Simple Question (Direct)
Simple Question
Q1080790
P21
Q290
USER
What is the sex of Christian Lehnert ?
(Q1080790,P21,c(Q290))
action filter_type
action find
entity Q1080790
relation P21
type Q290
['Q1080790', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1080790 property:P21 ?k . ?k rdf:type ontology:Q290 }
Christian Lehnert
action filter_type
action find
entity Christian Lehnert
relation gender
type sex
['Christian Lehnert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Christian_Lehnert property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1080790,P21,c(Q290))
action filter_type
action find
entity Q1080790
relation P21
type Q290
The sex of Christian Lehnert is the [ANSWER]
['Q1080790', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1080790 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
The sex of Christian Lehnert is the male
male
action filter_type
action find
entity Christian Lehnert
relation gender
type sex
['Christian Lehnert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Christian_Lehnert property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1080790
P937
Q515
USER
Where did Christian Lehnert work ?
(Q1080790,P937,c(Q515))
action filter_type
action find
entity Q1080790
relation P937
type Q515
['Q1080790', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q1080790 property:P937 ?p . ?p rdf:type ontology:Q515 }
Christian Lehnert
action filter_type
action find
entity Christian Lehnert
relation work location
type city
['Christian Lehnert', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Christian_Lehnert property:work_location ?p . ?p rdf:type ontology:city }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
(Q1080790,P937,c(Q515))
action filter_type
action find
entity Q1080790
relation P937
type Q515
Christian Lehnert worked in [ANSWER]
['Q1080790', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q1080790 property:P937 ?p . ?p rdf:type ontology:Q515 }
Leipzig
Christian Lehnert worked in Leipzig
Leipzig
action filter_type
action find
entity Christian Lehnert
relation work location
type city
['Christian Lehnert', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Christian_Lehnert property:work_location ?p . ?p rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5120252
Q515
USER
And what about Antanas Valys?
(Q5120252,P937,c(Q515))
action filter_type
action find
entity Q5120252
relation P937
type Q515
['Q5120252', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q5120252 property:P937 ?k . ?k rdf:type ontology:Q515 }
Antanas Valys
action filter_type
action find
entity Antanas Valys
relation work location
type city
['Antanas Valys', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Antanas_Valys property:work_location ?k . ?k rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q5120252,P937,c(Q515))
action filter_type
action find
entity Q5120252
relation P937
type Q515
[ANSWER]
['Q5120252', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q5120252 property:P937 ?k . ?k rdf:type ontology:Q515 }
Strasbourg
Strasbourg
action filter_type
action find
entity Antanas Valys
relation work location
type city
['Antanas Valys', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Antanas_Valys property:work_location ?k . ?k rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6602 Q100
P190
Q56061
USER
Is Boston sister town of that city ?
(Q6602,P190,Q100)
action is_in
entity Q100
action find
entity Q6602
relation P190
['Q6602', 'P190', 'Q100']
ASK WHERE { resource:Q6602 property:P190 resource:Q100 }
Strasbourg Boston
action is_in
entity Boston
action find
entity Strasbourg
relation sister city
['Strasbourg', 'sister city', 'Boston']
ASK WHERE { resource:Strasbourg property:sister_city resource:Boston }
[]
administrative territorial entity
SYSTEM
YES
(Q6602,P190,Q100)
action is_in
entity Q100
action find
entity Q6602
relation P190
[ANSWER]
['Q6602', 'P190', 'Q100']
ASK WHERE { resource:Q6602 property:P190 resource:Q100 }
Yes
action is_in
entity Boston
action find
entity Strasbourg
relation sister city
['Strasbourg', 'sister city', 'Boston']
ASK WHERE { resource:Strasbourg property:sister_city resource:Boston }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3866
P159
Q515 Q1269299 Q4830453
USER
How many cities are the headquarters of more number of business organizations and business enterprises located than Dodoma ?
(c(Q1269299)|c(Q4830453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q3866
relation P159
type Q1269299
type Q4830453
[[{'concept': 'Q1269299'}, {'concept': 'Q4830453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:P159 resource:Q3866 . { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1269299 ) ( ontology:Q4830453 ) } } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?e WHERE { { ?f property:P159 ?e . ?e rdf:type ontology:Q515 . ?f rdf:type ontology:Q1269299 } UNION { ?f rdf:type ontology:Q4830453 . ?e rdf:type ontology:Q515 . ?f property:P159 ?e } } GROUP BY ?e } }
Dodoma
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Dodoma
relation headquarters location
type type of business entity
type business enterprise
[[{'concept': 'type of business entity'}, {'concept': 'business enterprise'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:headquarters_location resource:Dodoma . { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:type_of_business_entity ) ( ontology:business_enterprise ) } } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?e WHERE { { ?f property:headquarters_location ?e . ?e rdf:type ontology:city . ?f rdf:type ontology:type_of_business_entity } UNION { ?f rdf:type ontology:business_enterprise . ?e rdf:type ontology:city . ?f property:headquarters_location ?e } } GROUP BY ?e } }
[]
city type of business entity business enterprise
SYSTEM
113
Q3572 Q1711 Q841296 Q3870 Q849439 Q11736 Q60037 Q17042 Q41283 Q3624 Q42651 Q14932 Q7473516 Q1009095 Q18575 Q3994 Q1017251 Q147738 Q43196 Q2887 Q3926 Q23482 Q5838 Q181276 Q3692 Q719 Q3104 Q1899 Q1410 Q14960 Q1794 Q178878 Q1486 Q2966 Q1467 Q1461 Q2865 Q10389 Q30340 Q629849 Q8247 Q188082 Q8684 Q167109 Q6602 Q1936067 Q72990 Q2100 Q1731 Q19660 Q665097 Q3075 Q389562 Q9005 Q8652 Q3004 Q26600 Q2973 Q1475 Q1773 Q2079 Q2773 Q6829 Q42007 Q1858 Q1854 Q7070 Q68481 Q1508 Q3042 Q157835 Q368929 Q34217 Q2749 Q496080 Q11194 Q2119 Q1720 Q1721 Q496405 Q2844 Q11725 Q1865 Q359990 Q42622 Q72778 Q1355 Q75091 Q187821 Q189761 Q189769 Q1761 Q2795 Q57866 Q2706 Q184998 Q456 Q158523 Q168648 Q2833 Q485176 Q3935 Q3936 Q3931 Q3200 Q3616 Q41278 Q171943 Q1533 Q1844 Q23768 Q59132 Q2999
(c(Q1269299)|c(Q4830453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q3866
relation P159
type Q1269299
type Q4830453
[ANSWER]
[[{'concept': 'Q1269299'}, {'concept': 'Q4830453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:P159 resource:Q3866 . { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1269299 ) ( ontology:Q4830453 ) } } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?e WHERE { { ?f property:P159 ?e . ?e rdf:type ontology:Q515 . ?f rdf:type ontology:Q1269299 } UNION { ?f rdf:type ontology:Q4830453 . ?e rdf:type ontology:Q515 . ?f property:P159 ?e } } GROUP BY ?e } }
Tunis Potsdam Příbram Nairobi Kopřivnice Tianjin Zalaegerszeg Oakland Gwangju Addis Ababa Wuxi Langen (Hessen) Tokyo Otrokovice Tucson Kempten Nová Paka Saint Helier Cincinnati Santiago Pretoria Marseille Kabul Szolnok Riyadh Saginaw Koblenz Kyiv Gibraltar Brno Frankfurt Békéscsaba Buenos Aires Heidelberg Cebu City Manila Kassel Bandung Zhengzhou Hatvan Biratnagar Český Krumlov Seoul Eger Strasbourg Smržovka Jincheng Duisburg Dresden Bucharest Minoh Fürth Inazawa Brussels Miami Ingolstadt Fukuoka Darmstadt Quezon City Riga Leipzig Braunschweig Speyer Szombathely Hanoi Ho Chi Minh City Eisenach Fuzhou Makati Offenbach am Main Zaporizhzhya Jindřichův Hradec Oxford Augsburg Kadoma Sarajevo Mannheim Mainz Wiesbaden Qujing Brasília Chongqing Kuala Lumpur Wuhu Suzhou Taiyuan Bangalore Benxi Tatabánya Szekszárd Salgótarján Dublin Chemnitz Yancheng Bremerhaven Kaposvár Lyon Ehingen Sopron Freiburg im Breisgau Pasadena Windhoek Bamberg Brandenburg an der Havel Salzgitter Tehran Ulsan Nanchang Caracas Vaduz Las Vegas Jiangmen Würzburg
113
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Dodoma
relation headquarters location
type type of business entity
type business enterprise
[[{'concept': 'type of business entity'}, {'concept': 'business enterprise'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:headquarters_location resource:Dodoma . { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:type_of_business_entity ) ( ontology:business_enterprise ) } } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?e WHERE { { ?f property:headquarters_location ?e . ?e rdf:type ontology:city . ?f rdf:type ontology:type_of_business_entity } UNION { ?f rdf:type ontology:business_enterprise . ?e rdf:type ontology:city . ?f property:headquarters_location ?e } } GROUP BY ?e } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q170454
P159
Q515 Q1269299 Q4830453
USER
And how about Agartala?
(c(Q1269299)|c(Q4830453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q170454
relation P159
type Q1269299
type Q4830453
[[{'concept': 'Q1269299'}, {'concept': 'Q4830453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) ?c WHERE { { ?c rdf:type ontology:Q515 . ?s rdf:type ontology:Q1269299 . ?s property:P159 ?c } UNION { ?s property:P159 ?c . ?c rdf:type ontology:Q515 . ?s rdf:type ontology:Q4830453 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { { ?b rdf:type ontology:Q1269299 } UNION { ?b rdf:type ontology:Q4830453 } } . ?b property:P159 resource:Q170454 } } . FILTER ( ?g > ?j ) }
Agartala
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Agartala
relation headquarters location
type type of business entity
type business enterprise
[[{'concept': 'type of business entity'}, {'concept': 'business enterprise'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) ?c WHERE { { ?c rdf:type ontology:city . ?s rdf:type ontology:type_of_business_entity . ?s property:headquarters_location ?c } UNION { ?s property:headquarters_location ?c . ?c rdf:type ontology:city . ?s rdf:type ontology:business_enterprise } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { { ?b rdf:type ontology:type_of_business_entity } UNION { ?b rdf:type ontology:business_enterprise } } . ?b property:headquarters_location resource:Agartala } } . FILTER ( ?g > ?j ) }
[]
city type of business entity business enterprise
SYSTEM
113
Q3572 Q1711 Q841296 Q3870 Q849439 Q11736 Q60037 Q17042 Q41283 Q3624 Q42651 Q14932 Q7473516 Q1009095 Q18575 Q3994 Q1017251 Q147738 Q43196 Q2887 Q3926 Q23482 Q5838 Q181276 Q3692 Q719 Q3104 Q1899 Q1410 Q14960 Q1794 Q178878 Q1486 Q2966 Q1467 Q1461 Q2865 Q10389 Q30340 Q629849 Q8247 Q188082 Q8684 Q167109 Q6602 Q1936067 Q72990 Q2100 Q1731 Q19660 Q665097 Q3075 Q389562 Q9005 Q8652 Q3004 Q26600 Q2973 Q1475 Q1773 Q2079 Q2773 Q6829 Q42007 Q1858 Q1854 Q7070 Q68481 Q1508 Q3042 Q157835 Q368929 Q34217 Q2749 Q496080 Q11194 Q2119 Q1720 Q1721 Q496405 Q2844 Q11725 Q1865 Q359990 Q42622 Q72778 Q1355 Q75091 Q187821 Q189761 Q189769 Q1761 Q2795 Q57866 Q2706 Q184998 Q456 Q158523 Q168648 Q2833 Q485176 Q3935 Q3936 Q3931 Q3200 Q3616 Q41278 Q171943 Q1533 Q1844 Q23768 Q59132 Q2999
(c(Q1269299)|c(Q4830453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q170454
relation P159
type Q1269299
type Q4830453
[ANSWER]
[[{'concept': 'Q1269299'}, {'concept': 'Q4830453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) ?c WHERE { { ?c rdf:type ontology:Q515 . ?s rdf:type ontology:Q1269299 . ?s property:P159 ?c } UNION { ?s property:P159 ?c . ?c rdf:type ontology:Q515 . ?s rdf:type ontology:Q4830453 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { { ?b rdf:type ontology:Q1269299 } UNION { ?b rdf:type ontology:Q4830453 } } . ?b property:P159 resource:Q170454 } } . FILTER ( ?g > ?j ) }
Tunis Potsdam Příbram Nairobi Kopřivnice Tianjin Zalaegerszeg Oakland Gwangju Addis Ababa Wuxi Langen (Hessen) Tokyo Otrokovice Tucson Kempten Nová Paka Saint Helier Cincinnati Santiago Pretoria Marseille Kabul Szolnok Riyadh Saginaw Koblenz Kyiv Gibraltar Brno Frankfurt Békéscsaba Buenos Aires Heidelberg Cebu City Manila Kassel Bandung Zhengzhou Hatvan Biratnagar Český Krumlov Seoul Eger Strasbourg Smržovka Jincheng Duisburg Dresden Bucharest Minoh Fürth Inazawa Brussels Miami Ingolstadt Fukuoka Darmstadt Quezon City Riga Leipzig Braunschweig Speyer Szombathely Hanoi Ho Chi Minh City Eisenach Fuzhou Makati Offenbach am Main Zaporizhzhya Jindřichův Hradec Oxford Augsburg Kadoma Sarajevo Mannheim Mainz Wiesbaden Qujing Brasília Chongqing Kuala Lumpur Wuhu Suzhou Taiyuan Bangalore Benxi Tatabánya Szekszárd Salgótarján Dublin Chemnitz Yancheng Bremerhaven Kaposvár Lyon Ehingen Sopron Freiburg im Breisgau Pasadena Windhoek Bamberg Brandenburg an der Havel Salzgitter Tehran Ulsan Nanchang Caracas Vaduz Las Vegas Jiangmen Würzburg
113
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Agartala
relation headquarters location
type type of business entity
type business enterprise
[[{'concept': 'type of business entity'}, {'concept': 'business enterprise'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) ?c WHERE { { ?c rdf:type ontology:city . ?s rdf:type ontology:type_of_business_entity . ?s property:headquarters_location ?c } UNION { ?s property:headquarters_location ?c . ?c rdf:type ontology:city . ?s rdf:type ontology:business_enterprise } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { { ?b rdf:type ontology:type_of_business_entity } UNION { ?b rdf:type ontology:business_enterprise } } . ?b property:headquarters_location resource:Agartala } } . FILTER ( ?g > ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6602
P840
Q571
USER
Which book has its setting located at Strasbourg ?
(c(Q571),P840,Q6602)
action filter_type
action find_reverse
entity Q6602
relation P840
type Q571
[{'concept': 'Q571'}, 'P840', 'Q6602']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q571 . ?i property:P840 resource:Q6602 }
Strasbourg
action filter_type
action find_reverse
entity Strasbourg
relation narrative location
type book
[{'concept': 'book'}, 'narrative location', 'Strasbourg']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:book . ?i property:narrative_location resource:Strasbourg }
[]
book
Q19136314
SYSTEM
Carnets de voyage
Q19136314
(c(Q571),P840,Q6602)
action filter_type
action find_reverse
entity Q6602
relation P840
type Q571
[ANSWER] has its setting located at Strasbourg
[{'concept': 'Q571'}, 'P840', 'Q6602']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q571 . ?i property:P840 resource:Q6602 }
Carnets de voyage
Carnets de voyage has its setting located at Strasbourg
Carnets de voyage
action filter_type
action find_reverse
entity Strasbourg
relation narrative location
type book
[{'concept': 'book'}, 'narrative location', 'Strasbourg']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:book . ?i property:narrative_location resource:Strasbourg }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6602
P1376
Q56061
USER
What has Strasbourg as its capital ?
(Q6602,P1376,c(Q56061))
action filter_type
action find
entity Q6602
relation P1376
type Q56061
['Q6602', 'P1376', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q6602 property:P1376 ?r . ?r rdf:type ontology:Q56061 }
Strasbourg
action filter_type
action find
entity Strasbourg
relation capital of
type administrative territorial entity
['Strasbourg', 'capital of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Strasbourg property:capital_of ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458
SYSTEM
European Union
Q458
(Q6602,P1376,c(Q56061))
action filter_type
action find
entity Q6602
relation P1376
type Q56061
[ANSWER] has Strasbourg as its capital
['Q6602', 'P1376', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q6602 property:P1376 ?r . ?r rdf:type ontology:Q56061 }
European Union
European Union has Strasbourg as its capital
European Union
action filter_type
action find
entity Strasbourg
relation capital of
type administrative territorial entity
['Strasbourg', 'capital of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Strasbourg property:capital_of ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6602
P1444
Q15091377
USER
Which cycling race ends its journey at that city ?
(c(Q15091377),P1444,Q458)
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q15091377
[{'concept': 'Q15091377'}, 'P1444', 'Q458']
SELECT DISTINCT ?y WHERE { ?y property:P1444 resource:Q6602 . ?y rdf:type ontology:Q15091377 }
Strasbourg
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type cycling race
[{'concept': 'cycling race'}, 'destination point', 'European Union']
SELECT DISTINCT ?y WHERE { ?y property:destination_point resource:Strasbourg . ?y rdf:type ontology:cycling_race }
[]
cycling race
Q21714644
SYSTEM
1954 Tour d'Europe
Q21714644
(c(Q15091377),P1444,Q458)
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q15091377
The [ANSWER] ends its journey at that city
[{'concept': 'Q15091377'}, 'P1444', 'Q458']
SELECT DISTINCT ?y WHERE { ?y property:P1444 resource:Q6602 . ?y rdf:type ontology:Q15091377 }
1954 Tour d'Europe
The 1954 Tour d'Europe ends its journey at that city
1954 Tour d'Europe
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type cycling race
[{'concept': 'cycling race'}, 'destination point', 'European Union']
SELECT DISTINCT ?y WHERE { ?y property:destination_point resource:Strasbourg . ?y rdf:type ontology:cycling_race }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q13220204 Q515 Q515
USER
Which cities are center of administration for approximately 1 administrative country subdivisions or cities ?
(c(Q515),P1376,c(Q13220204)|c(Q515))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q515
value 1
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?l WHERE { ?f rdf:type ?c . VALUES ( ?c ) { ( ontology:Q13220204 ) ( ontology:Q515 ) } } GROUP BY ?l } . FILTER ( ?w = 1 ) }
action approx
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type city
value 1
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'city'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?l WHERE { ?f rdf:type ?c . VALUES ( ?c ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:city ) } } GROUP BY ?l } . FILTER ( ?w = 1 ) }
[]
second-level administrative country subdivision city city
Q23482 Q456 Q7003
SYSTEM
Marseille, Lyon, Dijon
Q496667 Q23482 Q505208 Q1410 Q117676 Q305640 Q6807568 Q714628 Q177149 Q271000 Q271917 Q83247 Q3768 Q693264 Q6582 Q502205 Q456 Q267894 Q7003
(c(Q515),P1376,c(Q13220204)|c(Q515))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q515
value 1
[ANSWERS] are center of administration for approximately 1 administrative country subdivisions or cities
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?l WHERE { ?f rdf:type ?c . VALUES ( ?c ) { ( ontology:Q13220204 ) ( ontology:Q515 ) } } GROUP BY ?l } . FILTER ( ?w = 1 ) }
Muroran Marseille Ouarzazate Gibraltar Viseu Abashiri Emmen Rumoi Obihiro Bouaké Kushiro Braga Yamoussoukro Iwamizawa Carcassonne Nemuro Lyon Wakkanai Dijon
Marseille, Lyon and Dijon are center of administration for approximately 1 administrative country subdivisions or cities
Marseille Lyon Dijon
action approx
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type city
value 1
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'city'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?l WHERE { ?f rdf:type ?c . VALUES ( ?c ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:city ) } } GROUP BY ?l } . FILTER ( ?w = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q23482 Q456 Q7003
P1376
Q15617994
USER
What have those cities as their capital ?
(Q23482,P1376,c(Q15617994)) (Q456,P1376,c(Q15617994)) (Q7003,P1376,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P1376
type Q15617994
['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q456', 'P1376', {'concept': 'Q15617994'}] ['Q7003', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?o ) { ( resource:Q496667 ) ( resource:Q23482 ) ( resource:Q505208 ) } . ?o property:P1376 ?b . ?b rdf:type ontology:Q15617994 }
Marseille Lyon Dijon
action filter_type
action find
entity prev_answer
relation capital of
type designation for an administrative territorial entity
['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Lyon', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Dijon', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?o ) { ( resource:Muroran ) ( resource:Marseille ) ( resource:Ouarzazate ) } . ?o property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q3342 Q3240 Q46130
SYSTEM
Côte-d'Or, Bouches-du-Rhône, Rhône
Q3240 Q46130 Q3342 Q4712
(Q23482,P1376,c(Q15617994)) (Q456,P1376,c(Q15617994)) (Q7003,P1376,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P1376
type Q15617994
[ANSWERS] have those cities as their capital
['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q456', 'P1376', {'concept': 'Q15617994'}] ['Q7003', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?o ) { ( resource:Q496667 ) ( resource:Q23482 ) ( resource:Q505208 ) } . ?o property:P1376 ?b . ?b rdf:type ontology:Q15617994 }
Bouches-du-Rhône Rhône Côte-d'Or Duchy of Burgundy
Côte-d'Or, Bouches-du-Rhône and Rhône have those cities as their capital
Côte-d'Or Bouches-du-Rhône Rhône
action filter_type
action find
entity prev_answer
relation capital of
type designation for an administrative territorial entity
['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Lyon', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Dijon', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { VALUES ( ?o ) { ( resource:Muroran ) ( resource:Marseille ) ( resource:Ouarzazate ) } . ?o property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3240
P36
Q515
USER
Which city is called the capital of that administrative territory ?
(Q3240,P36,c(Q515))
action filter_type
action find
entity Q3240
relation P36
type Q515
['Q3240', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q3240 property:P36 ?i . ?i rdf:type ontology:Q515 }
Bouches-du-Rhône
action filter_type
action find
entity Bouches-du-Rhône
relation capital
type city
['Bouches-du-Rhône', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Bouches-du-Rhône property:capital ?i . ?i rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q3240
SYSTEM
Did you mean Bouches-du-Rhône ?
Q3342 Q3240 Q46130
(Q3342,P36,c(Q515)) (Q3240,P36,c(Q515)) (Q46130,P36,c(Q515))
[ANSWER]
['Q3342', 'P36', {'concept': 'Q515'}] ['Q3240', 'P36', {'concept': 'Q515'}] ['Q46130', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q3240 property:P36 ?i . ?i rdf:type ontology:Q515 }
Côte-d'Or Bouches-du-Rhône Rhône
Did you mean Bouches-du-Rhône ?
Bouches-du-Rhône
["Côte-d'Or", 'capital', {'concept': 'city'}] ['Bouches-du-Rhône', 'capital', {'concept': 'city'}] ['Rhône', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Bouches-du-Rhône property:capital ?i . ?i rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3240,P36,c(Q515))
['Q3240', 'P36', {'concept': 'Q515'}]
['Bouches-du-Rhône', 'capital', {'concept': 'city'}]
[]
Q23482
SYSTEM
Marseille
Q23482
(Q3240,P36,c(Q515))
action filter_type
action find
entity Q3240
relation P36
type Q515
[ANSWER] is called the capital of that administrative territory
['Q3240', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q3240 property:P36 ?i . ?i rdf:type ontology:Q515 }
Marseille
Marseille is called the capital of that administrative territory
Marseille
action filter_type
action find
entity Bouches-du-Rhône
relation capital
type city
['Bouches-du-Rhône', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Bouches-du-Rhône property:capital ?i . ?i rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q23482 Q5570138
P20
Q502895
USER
Does Eddie Bengtsson have that city as place of death ?
(Q5570138,P20,Q23482)
action is_in
entity Q5570138
action find
entity Q23482
relation P20
['Q5570138', 'P20', 'Q23482']
ASK WHERE { resource:Q23482 property:P20 resource:Q5570138 }
Marseille Eddie Bengtsson
action is_in
entity Eddie Bengtsson
action find
entity Marseille
relation place of death
['Eddie Bengtsson', 'place of death', 'Marseille']
ASK WHERE { resource:Marseille property:place_of_death resource:Eddie_Bengtsson }
[]
common name
SYSTEM
NO
(Q5570138,P20,Q23482)
action is_in
entity Q5570138
action find
entity Q23482
relation P20
[ANSWER]
['Q5570138', 'P20', 'Q23482']
ASK WHERE { resource:Q23482 property:P20 resource:Q5570138 }
No
action is_in
entity Eddie Bengtsson
action find
entity Marseille
relation place of death
['Eddie Bengtsson', 'place of death', 'Marseille']
ASK WHERE { resource:Marseille property:place_of_death resource:Eddie_Bengtsson }
[]