Simple Question (Direct)
Simple Question
Q1425124
P20
Q486972
USER
Where did Willy-Max Rademacher die ?
(Q1425124,P20,c(Q486972))
action filter_type
action find
entity Q1425124
relation P20
type Q486972
['Q1425124', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q1425124 property:P20 ?u . ?u rdf:type ontology:Q486972 }
Willy-Max Rademacher
action filter_type
action find
entity Willy-Max Rademacher
relation place of death
type human settlement
['Willy-Max Rademacher', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Willy-Max_Rademacher property:place_of_death ?u . ?u rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q1425124,P20,c(Q486972))
action filter_type
action find
entity Q1425124
relation P20
type Q486972
Willy-Max Rademacher died in [ANSWER]
['Q1425124', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q1425124 property:P20 ?u . ?u rdf:type ontology:Q486972 }
Hamburg
Willy-Max Rademacher died in Hamburg
Hamburg
action filter_type
action find
entity Willy-Max Rademacher
relation place of death
type human settlement
['Willy-Max Rademacher', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Willy-Max_Rademacher property:place_of_death ?u . ?u rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1425124
P937
Q515
USER
Which city is the work location of that person ?
(Q1055,P937,c(Q515))
action filter_type
action find
entity Q1425124
relation P937
type Q515
['Q1055', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?d WHERE { resource:Q1425124 property:P937 ?d . ?d rdf:type ontology:Q515 }
Willy-Max Rademacher
action filter_type
action find
entity Willy-Max Rademacher
relation work location
type city
['Hamburg', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?d WHERE { resource:Willy-Max_Rademacher property:work_location ?d . ?d rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q1055,P937,c(Q515))
action filter_type
action find
entity Q1425124
relation P937
type Q515
[ANSWER] is the work location of that person
['Q1055', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?d WHERE { resource:Q1425124 property:P937 ?d . ?d rdf:type ontology:Q515 }
Strasbourg
Strasbourg is the work location of that person
Strasbourg
action filter_type
action find
entity Willy-Max Rademacher
relation work location
type city
['Hamburg', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?d WHERE { resource:Willy-Max_Rademacher property:work_location ?d . ?d rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P36
Q20667921 Q15617994
USER
How many french administrative divisions and administrative territories have that city as their capital ?
(c(Q20667921),P36,Q6602) (c(Q15617994),P36,Q6602) (c(Q20667921),P36,Q6602) (c(Q15617994),P36,Q6602)
action count
action union
action filter_type
action find_reverse
entity Q6602
relation P36
type Q20667921
action filter_type
action find_reverse
entity Q6602
relation P36
type Q15617994
[{'concept': 'Q20667921'}, 'P36', 'Q6602'] [{'concept': 'Q15617994'}, 'P36', 'Q6602'] [{'concept': 'Q20667921'}, 'P36', 'Q6602'] [{'concept': 'Q15617994'}, 'P36', 'Q6602']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g property:P36 resource:Q6602 . ?g rdf:type ontology:Q20667921 } UNION { ?g property:P36 resource:Q6602 . ?g rdf:type ontology:Q15617994 } }
action count
action union
action filter_type
action find_reverse
entity Strasbourg
relation capital
type type of french administrative division
action filter_type
action find_reverse
entity Strasbourg
relation capital
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital', 'Strasbourg'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Strasbourg'] [{'concept': 'type of french administrative division'}, 'capital', 'Strasbourg'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Strasbourg']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g property:capital resource:Strasbourg . ?g rdf:type ontology:type_of_french_administrative_division } UNION { ?g property:capital resource:Strasbourg . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
type of french administrative division designation for an administrative territorial entity
SYSTEM
11 french administrative divisions and 2 administrative territories
Q12717 Q1399197 Q1399216 Q1399187 Q1399226 Q427164 Q1399239 Q1399221 Q1399247 Q18677983 Q1263703 Q2150573 Q1399253
(c(Q20667921),P36,Q6602) (c(Q15617994),P36,Q6602) (c(Q20667921),P36,Q6602) (c(Q15617994),P36,Q6602)
action count
action union
action filter_type
action find_reverse
entity Q6602
relation P36
type Q20667921
action filter_type
action find_reverse
entity Q6602
relation P36
type Q15617994
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q6602'] [{'concept': 'Q15617994'}, 'P36', 'Q6602'] [{'concept': 'Q20667921'}, 'P36', 'Q6602'] [{'concept': 'Q15617994'}, 'P36', 'Q6602']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g property:P36 resource:Q6602 . ?g rdf:type ontology:Q20667921 } UNION { ?g property:P36 resource:Q6602 . ?g rdf:type ontology:Q15617994 } }
Bas-Rhin canton of Strasbourg-2 canton of Strasbourg-1 canton of Strasbourg-3 canton of Strasbourg-6 canton of Strasbourg-10 canton of Strasbourg-4 canton of Strasbourg-7 canton of Strasbourg-9 Grand Est canton of Strasbourg-5 Unterelsaß canton of Strasbourg-8
11 french administrative divisions and 2 administrative territories
action count
action union
action filter_type
action find_reverse
entity Strasbourg
relation capital
type type of french administrative division
action filter_type
action find_reverse
entity Strasbourg
relation capital
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital', 'Strasbourg'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Strasbourg'] [{'concept': 'type of french administrative division'}, 'capital', 'Strasbourg'] [{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Strasbourg']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g property:capital resource:Strasbourg . ?g rdf:type ontology:type_of_french_administrative_division } UNION { ?g property:capital resource:Strasbourg . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1376
Q15617994 Q515
USER
Which administrative territories have max number of cities have their first city ?
(c(Q515),P1376,Q12564)
action argmax
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
[{'concept': 'Q515'}, 'P1376', 'Q12564']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P1376 ?k . ?k rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q515 } GROUP BY ?k } . FILTER ( ?d = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P1376 ?w . ?w rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q515 } GROUP BY ?w } } }
action argmax
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
[{'concept': 'city'}, 'capital of', 'Loir-et-Cher']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:capital_of ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:city } GROUP BY ?k } . FILTER ( ?d = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:city } GROUP BY ?w } } }
[]
designation for an administrative territorial entity city
Q252
SYSTEM
Indonesia
Q252
(c(Q515),P1376,Q12564)
action argmax
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
[ANSWER] have max number of cities have their first city
[{'concept': 'Q515'}, 'P1376', 'Q12564']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P1376 ?k . ?k rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q515 } GROUP BY ?k } . FILTER ( ?d = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P1376 ?w . ?w rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q515 } GROUP BY ?w } } }
Indonesia
Indonesia have max number of cities have their first city
Indonesia
action argmax
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
[{'concept': 'city'}, 'capital of', 'Loir-et-Cher']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:capital_of ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:city } GROUP BY ?k } . FILTER ( ?d = ?x ) . { SELECT DISTINCT ( MAX ( ?o ) AS ?x ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:city } GROUP BY ?w } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q252 Q57405
P35
Q502895
USER
Is Susilo Bambang Yudhoyono the head of state of that administrative territory ?
(Q252,P35,Q57405)
action is_in
entity Q57405
action find
entity Q252
relation P35
['Q252', 'P35', 'Q57405']
ASK WHERE { resource:Q252 property:P35 resource:Q57405 }
Indonesia Susilo Bambang Yudhoyono
action is_in
entity Susilo Bambang Yudhoyono
action find
entity Indonesia
relation head of state
['Indonesia', 'head of state', 'Susilo Bambang Yudhoyono']
ASK WHERE { resource:Indonesia property:head_of_state resource:Susilo_Bambang_Yudhoyono }
[]
common name
SYSTEM
YES
(Q252,P35,Q57405)
action is_in
entity Q57405
action find
entity Q252
relation P35
[ANSWER]
['Q252', 'P35', 'Q57405']
ASK WHERE { resource:Q252 property:P35 resource:Q57405 }
Yes
action is_in
entity Susilo Bambang Yudhoyono
action find
entity Indonesia
relation head of state
['Indonesia', 'head of state', 'Susilo Bambang Yudhoyono']
ASK WHERE { resource:Indonesia property:head_of_state resource:Susilo_Bambang_Yudhoyono }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q252
P163
Q14660
USER
What is associated with Indonesia ?
(Q252,P163,c(Q14660))
action filter_type
action find
entity Q252
relation P163
type Q14660
['Q252', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?m WHERE { resource:Q252 property:P163 ?m . ?m rdf:type ontology:Q14660 }
Indonesia
action filter_type
action find
entity Indonesia
relation flag
type flag
['Indonesia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?m WHERE { resource:Indonesia property:flag ?m . ?m rdf:type ontology:flag }
[]
flag
Q101472
SYSTEM
Flag of Indonesia
Q101472
(Q252,P163,c(Q14660))
action filter_type
action find
entity Q252
relation P163
type Q14660
Indonesia [ANSWER] is associated with Indonesia
['Q252', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?m WHERE { resource:Q252 property:P163 ?m . ?m rdf:type ontology:Q14660 }
Flag of Indonesia
Indonesia Flag of Indonesia is associated with Indonesia
Flag of Indonesia
action filter_type
action find
entity Indonesia
relation flag
type flag
['Indonesia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?m WHERE { resource:Indonesia property:flag ?m . ?m rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q236
Q14660
USER
And also tell me about Montenegro?
(Q236,P163,c(Q14660))
action filter_type
action find
entity Q236
relation P163
type Q14660
['Q236', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?d WHERE { resource:Q236 property:P163 ?d . ?d rdf:type ontology:Q14660 }
Montenegro
action filter_type
action find
entity Montenegro
relation flag
type flag
['Montenegro', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?d WHERE { resource:Montenegro property:flag ?d . ?d rdf:type ontology:flag }
[]
flag
Q162980
SYSTEM
Flag of Montenegro
Q162980
(Q236,P163,c(Q14660))
action filter_type
action find
entity Q236
relation P163
type Q14660
[ANSWER]
['Q236', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?d WHERE { resource:Q236 property:P163 ?d . ?d rdf:type ontology:Q14660 }
Flag of Montenegro
Flag of Montenegro
action filter_type
action find
entity Montenegro
relation flag
type flag
['Montenegro', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?d WHERE { resource:Montenegro property:flag ?d . ?d rdf:type ontology:flag }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3859
P159
Q515 Q4830453 Q874405
USER
How many cities are the HQ of lesser number of business enterprises or social groups than Kigali ?
(c(Q4830453)|c(Q874405),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q3859
relation P159
type Q4830453
type Q874405
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?o WHERE { { ?a property:P159 ?o . ?o rdf:type ontology:Q515 . ?a rdf:type ontology:Q4830453 } UNION { ?a property:P159 ?o . ?o rdf:type ontology:Q515 . ?a rdf:type ontology:Q874405 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P159 resource:Q3859 . { { ?f rdf:type ontology:Q4830453 } UNION { ?f rdf:type ontology:Q874405 } } } } . FILTER ( ?x < ?g ) }
Kigali
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
action count
action filter_multi_types
action find_reverse
entity Kigali
relation headquarters location
type business enterprise
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?o WHERE { { ?a property:headquarters_location ?o . ?o rdf:type ontology:city . ?a rdf:type ontology:business_enterprise } UNION { ?a property:headquarters_location ?o . ?o rdf:type ontology:city . ?a rdf:type ontology:social_group } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:headquarters_location resource:Kigali . { { ?f rdf:type ontology:business_enterprise } UNION { ?f rdf:type ontology:social_group } } } } . FILTER ( ?x < ?g ) }
[]
city business enterprise social group
SYSTEM
508
Q386691 Q944051 Q496702 Q3572 Q10127 Q643878 Q1711 Q10124 Q213278 Q841296 Q873835 Q3974 Q34412 Q703158 Q835227 Q849439 Q11736 Q1000069 Q852018 Q318047 Q1000060 Q460835 Q60037 Q278877 Q857256 Q569907 Q217432 Q827041 Q86536 Q860647 Q686775 Q4024 Q732851 Q499493 Q840888 Q10393 Q25282 Q609350 Q664895 Q41283 Q27860 Q3806 Q58401 Q3624 Q42651 Q209785 Q360326 Q58273 Q838652 Q68862 Q695895 Q43199 Q646818 Q335444 Q212494 Q385982 Q52607 Q766168 Q774952 Q2427117 Q392692 Q59173 Q273880 Q320943 Q734416 Q861246 Q985465 Q14932 Q7473516 Q71266 Q846338 Q816728 Q696777 Q58570 Q1009095 Q653389 Q1019083 Q20934 Q41474 Q853821 Q57951 Q174091 Q59100 Q637913 Q734520 Q653372 Q38968 Q169127 Q622620 Q696388 Q3994 Q1000029 Q1017251 Q147738 Q1624 Q373023 Q1629 Q2135 Q43196 Q74957 Q653446 Q8131 Q362959 Q210493 Q11462 Q3214 Q83786 Q23482 Q505208 Q605256 Q374477 Q5838 Q181276 Q16520 Q220445 Q3692 Q330409 Q317834 Q192271 Q58710 Q719 Q375651 Q69060 Q75961 Q3069 Q592065 Q19689 Q3104 Q389515 Q394453 Q175197 Q216077 Q2910 Q321778 Q535534 Q68695 Q461020 Q1410 Q14960 Q507846 Q375097 Q695930 Q9085 Q5088 Q178878 Q390413 Q203027 Q2966 Q331577 Q4348183 Q179608 Q1467 Q213263 Q425492 Q2865 Q851411 Q607625 Q13630 Q57719 Q496072 Q198370 Q73073 Q1000073 Q12245 Q117676 Q16959 Q386635 Q194087 Q10389 Q30340 Q23430 Q291745 Q629849 Q986070 Q4346 Q515573 Q8854 Q838660 Q243859 Q8247 Q694308 Q646805 Q182378 Q235 Q188082 Q1889017 Q161176 Q79535 Q460829 Q167668 Q1519 Q270704 Q167109 Q2509609 Q459787 Q15734 Q209683 Q163888 Q207030 Q207408 Q877941 Q316841 Q873583 Q237699 Q1757191 Q1209 Q23661 Q3904 Q330007 Q1936067 Q615138 Q373101 Q14819 Q5285 Q14182 Q75026 Q104036 Q693237 Q72990 Q7568 Q44244 Q92324 Q657642 Q1000033 Q694317 Q2100 Q502486 Q56759 Q43433 Q641491 Q7027 Q57931 Q3857 Q426130 Q606212 Q155975 Q242108 Q3915 Q75110 Q460812 Q665097 Q174461 Q385591 Q1017806 Q17182 Q124375 Q2180 Q392624 Q75203 Q3075 Q239597 Q850332 Q861621 Q177149 Q389562 Q850344 Q62723 Q496319 Q820496 Q646834 Q3185 Q427557 Q844138 Q423371 Q820725 Q3004 Q26600 Q2092152 Q740853 Q645567 Q207876 Q384926 Q2978 Q860659 Q385779 Q2973 Q518992 Q34261 Q1953 Q373564 Q137271 Q1010158 Q1475 Q1473 Q658058 Q1773 Q1852569 Q1478 Q14821 Q824009 Q817965 Q3958 Q57970 Q3955 Q198266 Q425415 Q2079 Q6829 Q8156 Q14440 Q404599 Q42007 Q1379299 Q2096 Q1854 Q1856 Q3787 Q497341 Q844052 Q916156 Q4007 Q242874 Q694154 Q7070 Q3826 Q492366 Q696407 Q58210 Q182852 Q214942 Q68481 Q838672 Q374511 Q4174 Q847565 Q386651 Q317847 Q1826 Q200077 Q47916 Q80484 Q58576 Q328605 Q71247 Q75336 Q1508 Q326956 Q243293 Q3126 Q571051 Q3042 Q157835 Q3046 Q594275 Q368929 Q2936 Q372791 Q463171 Q2749 Q502407 Q170454 Q211243 Q210661 Q736897 Q496080 Q217698 Q386322 Q187861 Q207311 Q3852 Q485581 Q485583 Q869027 Q206872 Q390792 Q5972 Q1721 Q1643 Q1645 Q329996 Q11443 Q855059 Q7033 Q57906 Q11444 Q3866 Q34405 Q496405 Q1723 Q2844 Q11725 Q208863 Q427265 Q470369 Q1863 Q2209 Q2200 Q533241 Q359990 Q16506 Q1013864 Q76010 Q999916 Q42622 Q633996 Q185684 Q59095 Q72778 Q360235 Q3167 Q183584 Q187136 Q5869 Q508591 Q570937 Q59223 Q328651 Q17189 Q830411 Q1019675 Q851680 Q740863 Q75091 Q3014 Q634022 Q189823 Q242882 Q40626 Q242885 Q146317 Q825166 Q502209 Q5784 Q273798 Q187821 Q270814 Q20921 Q107401 Q57944 Q986082 Q189761 Q189769 Q57948 Q2795 Q236197 Q72877 Q954569 Q57866 Q2880 Q488134 Q2706 Q132997 Q184998 Q5217 Q696643 Q269634 Q285488 Q819603 Q851155 Q210628 Q158523 Q168648 Q3838 Q850676 Q551658 Q20073 Q990352 Q485176 Q3935 Q7003 Q3936 Q3931 Q3933 Q3919 Q3751 Q59218 Q3200 Q696412 Q844852 Q41278 Q171943 Q1205932 Q823927 Q386661 Q1019956 Q386668 Q25475 Q523956 Q328619 Q786762 Q4060 Q71339 Q542154 Q1530 Q733979 Q508670 Q66485 Q58422 Q1844 Q2900 Q857285 Q23768 Q58584 Q1000101 Q842923 Q92277 Q80989 Q59132 Q873596 Q329754 Q721163 Q390817 Q207309 Q187812 Q125604 Q2999 Q16666 Q1088790
(c(Q4830453)|c(Q874405),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q3859
relation P159
type Q4830453
type Q874405
[ANSWER]
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?o WHERE { { ?a property:P159 ?o . ?o rdf:type ontology:Q515 . ?a rdf:type ontology:Q4830453 } UNION { ?a property:P159 ?o . ?o rdf:type ontology:Q515 . ?a rdf:type ontology:Q874405 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P159 resource:Q3859 . { { ?f rdf:type ontology:Q4830453 } UNION { ?f rdf:type ontology:Q874405 } } } } . FILTER ( ?x < ?g ) }
Niiza City Horní Jiřetín Goshogawara Tunis Tangerang Settsu Potsdam Cilegon Kodaira Příbram Tomioka Landshut Foshan Velké Meziříčí Ineu Kopřivnice Tianjin Lovosice Izumisano Narashino Humpolec Marugame Zalaegerszeg Český Těšín Hasuda Baotou Port Harcourt Beroun Komae City Seki Fuchū Frankfurt (Oder) Mioveni Seto Ina Bogor Danang Kawanishi Uherský Brod Gwangju Jayapura Tübingen Shijiazhuang Addis Ababa Wuxi Ichikawa Tongling Taizhou Nakano Longyan Urasoe Omaha Towada Itami Akishima City Herend Mar del Plata Nagykáta Matsubara Mníšek pod Brdy Šumperk Huizhou Beppu Matsudo Tsuruoka Nagaokakyō Rakovník Langen (Hessen) Tokyo Yichang Suwa Kyōtanabe Nisshin Handan Otrokovice Nobeoka Napajedla Incheon Kingstown Mizunami Marienberg Changsha Shantou Tōgane Isehara Higashihiroshima Liuzhou Chitila Tōkai Toyooka Kempten Kraslice Nová Paka Saint Helier Pasig Weihai Zamboanga City Winnipeg Cincinnati Anshan Tsuchiura Palembang Xinyu Yantai Surabaya Cottbus Shimla Marseille Ouarzazate Shimada Ashikaga Kabul Szolnok Busan Kuching Riyadh Ústí nad Orlicí Kokubunji City Guiyang Langfang Saginaw Valašské Meziříčí Xining Biñan Bottrop Ginowan Tirana Koblenz Kariya Žďár nad Sázavou Kunovice Jiujiang Ludwigshafen Hodonín Hohhot Quanzhou Imabari Gibraltar Brno Sebiș Tiszaújváros Hirakawa Mandaluyong Durgapur Békéscsaba Tomakomai Tsu Heidelberg Abrud Athkatla Nanning Cebu City Tama City Luzhou Kassel Imizu Tamási Olbia Xuzhou Fujinomiya Zibo Yuncheng Pelhřimov Stanley Viseu Ürümqi Hikone Hirosaki Bandung Zhengzhou Ulaanbaatar Ílhavo Hatvan Chrudim Waren (Müritz) Hanzhong Las Piñas Chino Abiko Biratnagar Habikino Nanto Putrajaya Monaco Český Krumlov Mandaue Fukushima Fort Smith Matsusaka Liepāja Abu Dhabi Třebíč Eger Sunchales Iloilo City Izumi Tokoname Ageo Ziyang Vác Echizen Karlovo Kashiwara Aizuwakamatsu Krásná Lípa Free Hanseatic City of Bremen Wellington Mbabane Kunitachi City Smržovka Soběslav Rizhao Freiberg Tarlac Banjarmasin Fushun Ventspils Chitose Jincheng Yogyakarta Santa Fe Tonghua Villány Lanškroun Chōshi Duisburg Mobara Olongapo Chandigarh Kakamigahara Straubing Taizhou Wilhelmshaven Mianyang Fremantle Kutná Hora Otaru Antananarivo Dandong Naruto Minoh Ranchi Ōmura Nové Sedlo Parañaque Hódmezővásárhely Malolos Štětí Liaoyang Fürth Neratovice Tagawa Nankoku Obihiro Inazawa Sakado General Trias Kashihara Kōnan Asaka Hildesheim Ya'an Ryūgasaki Ștei Nayoro Ingolstadt Fukuoka Velešín Szigetszentmiklós Törökbálint Yamaguchi Ōgaki Regensburg Gyōda Tendō Darmstadt Călan Port-au-Prince Yerevan Liaocheng Kota Kinabalu Letohrad Quezon City Davao City Wakō City Riga Týnec nad Sázavou Caloocan Coburg Sayama Ikeda Neubrandenburg Changzhou Weimar Zhuzhou Panzhihua Leipzig Speyer Bandar Lampung Iquique Luohe Szombathely Smyrna Edmonton Ho Chi Minh City Malaybalay Abuja Xianyang Nakatsugawa Ghimbav Rosenheim Koganei City Moriguchi Eisenach Muscat Norden Hakusan Jinhua Kunming Kazincbarcika Fuzhou Okaya Oyama Emden Hanyū City Iwata Inagi Tagbilaran Morioka Lucknow Patna Xingtai Iizuka Jingzhou Chaoyang Makati Uji Sekondi-Takoradi Erlangen Tsubame Offenbach am Main Zaporizhzhya Pforzheim General Santos Jindřichův Hradec Oldenburg Jining Handa Augsburg Kiyosu Agartala Yinchuan Musashino Hatsukaichi Kadoma Weifang Ōtawara Wollongong Suzuka Worms Aveiro Anan Tsurugashima Ajka Kanuma Medan Wiesbaden Taguig Cagayan de Oro Ōdate Kediri Sakaide Nordhausen Yangzhou Madiun Dodoma Jingdezhen Qujing Batangas City Brasília Chongqing Hachiōji City Yibin Kolín Andorra la Vella Roxas Tuguegarao Shimotsuma Wuhu České Budějovice Hluk Santa Rosa Vysoké Mýto Suzhou Kameoka Hefei Zhuhai Taiyuan Ma'anshan Siegen Lanzhou Luoyang Lhasa Police nad Metují Ordos City Zhongshan Yachiyo Pasay Körmend Nové Město nad Metují Kazo Česká Lípa Benxi Wolfsburg Kiryū Haikou Nishi-Tōkyō City Tacloban Mitaka City Veszprém Izumo Hōfu Lhokseumawe Narita Tatabánya Ishinomaki Daejeon Sivas Annaberg-Buchholz Litvínov Szekszárd Salgótarján Aue Chemnitz Hino City Datong Vyškov Yancheng Hamm Ontario Bremerhaven Florianópolis Kaposvár Bacolod Kashiba Tachikawa City Iligan Munakata Kasai Machida City Ehingen Sopron Kinshasa Blansko Vila Nova de Famalicão Hohenstein-Ernstthal Kizugawa Pasadena Windhoek Dijon Bamberg Brandenburg an der Havel Celle Gaborone Praia Dongguan Salzgitter Izumi Ueda Ulsan Nanchang Takizawa Higashine Fujisawa Moravské Budějovice Daitō Batumi Auerbach in der Oberpfalz Noda Hroznětín Hürth Xiaogan Koronadal Baghdad Eniwa Chișineu-Criș Jaipur Tangshan Vaduz Quito Kitamoto Las Vegas Baoding Vlašim Pomáz Jilin City Bhopal Jiangmen Niimi Kiyose City Itō Ichinoseki Tokushima Dunaújváros Găești Würzburg Nanjing Zsámbék
508
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
action count
action filter_multi_types
action find_reverse
entity Kigali
relation headquarters location
type business enterprise
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?o WHERE { { ?a property:headquarters_location ?o . ?o rdf:type ontology:city . ?a rdf:type ontology:business_enterprise } UNION { ?a property:headquarters_location ?o . ?o rdf:type ontology:city . ?a rdf:type ontology:social_group } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:headquarters_location resource:Kigali . { { ?f rdf:type ontology:business_enterprise } UNION { ?f rdf:type ontology:social_group } } } } . FILTER ( ?x < ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q179608
P159
Q515 Q4830453 Q874405
USER
And what about Nanning?
(c(Q4830453)|c(Q874405),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q179608
relation P159
type Q4830453
type Q874405
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:P159 resource:Q179608 . { ?j rdf:type ?u . VALUES ( ?u ) { ( ontology:Q874405 ) ( ontology:Q4830453 ) } } } } . FILTER ( ?v < ?r ) . { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } } GROUP BY ?m } }
Nanning
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
action count
action filter_multi_types
action find_reverse
entity Nanning
relation headquarters location
type business enterprise
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:headquarters_location resource:Nanning . { ?j rdf:type ?u . VALUES ( ?u ) { ( ontology:social_group ) ( ontology:business_enterprise ) } } } } . FILTER ( ?v < ?r ) . { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:business_enterprise ) ( ontology:social_group ) } } GROUP BY ?m } }
[]
city business enterprise social group
SYSTEM
410
Q386691 Q944051 Q496702 Q10127 Q643878 Q10124 Q213278 Q873835 Q3974 Q34412 Q703158 Q835227 Q1000069 Q852018 Q318047 Q1000060 Q460835 Q60037 Q278877 Q857256 Q569907 Q217432 Q827041 Q86536 Q860647 Q686775 Q4024 Q732851 Q499493 Q840888 Q25282 Q609350 Q664895 Q27860 Q3806 Q58401 Q42651 Q209785 Q360326 Q58273 Q838652 Q68862 Q695895 Q43199 Q646818 Q335444 Q212494 Q385982 Q52607 Q766168 Q774952 Q2427117 Q392692 Q59173 Q273880 Q320943 Q734416 Q861246 Q985465 Q14932 Q71266 Q846338 Q816728 Q696777 Q58570 Q653389 Q1019083 Q20934 Q41474 Q853821 Q57951 Q174091 Q59100 Q637913 Q734520 Q653372 Q38968 Q169127 Q622620 Q696388 Q1000029 Q1624 Q373023 Q1629 Q74957 Q653446 Q8131 Q362959 Q210493 Q11462 Q3214 Q83786 Q505208 Q605256 Q374477 Q16520 Q220445 Q330409 Q317834 Q192271 Q58710 Q375651 Q69060 Q75961 Q3069 Q592065 Q389515 Q394453 Q175197 Q216077 Q2910 Q321778 Q535534 Q68695 Q461020 Q507846 Q375097 Q695930 Q9085 Q390413 Q203027 Q331577 Q4348183 Q213263 Q425492 Q851411 Q607625 Q13630 Q57719 Q496072 Q198370 Q73073 Q1000073 Q12245 Q117676 Q16959 Q194087 Q291745 Q986070 Q4346 Q515573 Q8854 Q838660 Q243859 Q694308 Q646805 Q235 Q1889017 Q161176 Q79535 Q460829 Q167668 Q270704 Q2509609 Q459787 Q15734 Q209683 Q163888 Q207030 Q207408 Q877941 Q316841 Q873583 Q237699 Q1757191 Q1209 Q3904 Q330007 Q615138 Q373101 Q14819 Q5285 Q14182 Q75026 Q104036 Q693237 Q7568 Q44244 Q92324 Q657642 Q1000033 Q694317 Q502486 Q56759 Q641491 Q7027 Q57931 Q3857 Q426130 Q606212 Q155975 Q242108 Q75110 Q460812 Q174461 Q385591 Q1017806 Q17182 Q124375 Q2180 Q392624 Q75203 Q3075 Q239597 Q850332 Q861621 Q177149 Q850344 Q496319 Q820496 Q646834 Q3185 Q427557 Q844138 Q423371 Q820725 Q2092152 Q740853 Q645567 Q207876 Q384926 Q2978 Q860659 Q385779 Q518992 Q373564 Q137271 Q1010158 Q1473 Q658058 Q1852569 Q1478 Q14821 Q824009 Q817965 Q3958 Q57970 Q3955 Q198266 Q425415 Q8156 Q14440 Q404599 Q42007 Q1379299 Q1856 Q497341 Q844052 Q916156 Q4007 Q242874 Q694154 Q3826 Q492366 Q696407 Q58210 Q214942 Q838672 Q374511 Q4174 Q847565 Q386651 Q317847 Q1826 Q200077 Q58576 Q328605 Q71247 Q75336 Q326956 Q243293 Q3126 Q571051 Q3046 Q594275 Q2936 Q372791 Q463171 Q502407 Q170454 Q211243 Q210661 Q736897 Q496080 Q217698 Q386322 Q187861 Q207311 Q3852 Q485581 Q485583 Q869027 Q206872 Q390792 Q5972 Q1643 Q1645 Q329996 Q11443 Q855059 Q7033 Q57906 Q11444 Q3866 Q34405 Q1723 Q208863 Q427265 Q470369 Q2209 Q2200 Q533241 Q16506 Q1013864 Q76010 Q633996 Q185684 Q59095 Q360235 Q3167 Q183584 Q187136 Q5869 Q508591 Q570937 Q59223 Q328651 Q17189 Q830411 Q1019675 Q851680 Q740863 Q3014 Q634022 Q189823 Q242882 Q40626 Q242885 Q146317 Q825166 Q502209 Q5784 Q273798 Q187821 Q270814 Q20921 Q107401 Q57944 Q986082 Q57948 Q236197 Q72877 Q954569 Q2880 Q488134 Q132997 Q5217 Q696643 Q269634 Q285488 Q819603 Q851155 Q210628 Q3838 Q850676 Q551658 Q20073 Q990352 Q7003 Q3933 Q3919 Q3751 Q59218 Q3200 Q696412 Q844852 Q41278 Q1205932 Q823927 Q386661 Q1019956 Q386668 Q25475 Q523956 Q328619 Q786762 Q4060 Q71339 Q542154 Q733979 Q508670 Q66485 Q58422 Q2900 Q857285 Q23768 Q58584 Q1000101 Q842923 Q92277 Q80989 Q873596 Q329754 Q721163 Q390817 Q207309 Q187812 Q125604 Q2999 Q1088790
(c(Q4830453)|c(Q874405),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q179608
relation P159
type Q4830453
type Q874405
[ANSWER]
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:P159 resource:Q179608 . { ?j rdf:type ?u . VALUES ( ?u ) { ( ontology:Q874405 ) ( ontology:Q4830453 ) } } } } . FILTER ( ?v < ?r ) . { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } } GROUP BY ?m } }
Niiza City Horní Jiřetín Goshogawara Tangerang Settsu Cilegon Kodaira Tomioka Landshut Foshan Velké Meziříčí Ineu Lovosice Izumisano Narashino Humpolec Marugame Zalaegerszeg Český Těšín Hasuda Baotou Port Harcourt Beroun Komae City Seki Fuchū Frankfurt (Oder) Mioveni Seto Ina Danang Kawanishi Uherský Brod Jayapura Tübingen Shijiazhuang Wuxi Ichikawa Tongling Taizhou Nakano Longyan Urasoe Omaha Towada Itami Akishima City Herend Mar del Plata Nagykáta Matsubara Mníšek pod Brdy Šumperk Huizhou Beppu Matsudo Tsuruoka Nagaokakyō Rakovník Langen (Hessen) Yichang Suwa Kyōtanabe Nisshin Handan Nobeoka Napajedla Incheon Kingstown Mizunami Marienberg Changsha Shantou Tōgane Isehara Higashihiroshima Liuzhou Chitila Tōkai Toyooka Kraslice Pasig Weihai Zamboanga City Anshan Tsuchiura Palembang Xinyu Yantai Surabaya Cottbus Shimla Ouarzazate Shimada Ashikaga Busan Kuching Ústí nad Orlicí Kokubunji City Guiyang Langfang Valašské Meziříčí Xining Biñan Bottrop Ginowan Kariya Žďár nad Sázavou Kunovice Jiujiang Ludwigshafen Hodonín Hohhot Quanzhou Imabari Sebiș Tiszaújváros Hirakawa Mandaluyong Tomakomai Tsu Abrud Athkatla Tama City Luzhou Imizu Tamási Olbia Xuzhou Fujinomiya Zibo Yuncheng Pelhřimov Stanley Viseu Ürümqi Hirosaki Ílhavo Chrudim Waren (Müritz) Hanzhong Las Piñas Chino Abiko Habikino Nanto Monaco Mandaue Fukushima Fort Smith Matsusaka Liepāja Třebíč Sunchales Iloilo City Izumi Tokoname Ageo Ziyang Vác Echizen Karlovo Kashiwara Aizuwakamatsu Krásná Lípa Free Hanseatic City of Bremen Mbabane Kunitachi City Soběslav Rizhao Freiberg Tarlac Banjarmasin Fushun Ventspils Chitose Yogyakarta Santa Fe Tonghua Villány Lanškroun Chōshi Mobara Olongapo Kakamigahara Straubing Taizhou Wilhelmshaven Mianyang Fremantle Kutná Hora Otaru Dandong Naruto Ranchi Ōmura Nové Sedlo Parañaque Hódmezővásárhely Malolos Štětí Liaoyang Fürth Neratovice Tagawa Nankoku Obihiro Sakado Kashihara Kōnan Asaka Hildesheim Ya'an Ryūgasaki Ștei Nayoro Velešín Szigetszentmiklós Törökbálint Yamaguchi Ōgaki Regensburg Gyōda Tendō Călan Liaocheng Kota Kinabalu Letohrad Davao City Wakō City Týnec nad Sázavou Caloocan Coburg Sayama Ikeda Neubrandenburg Changzhou Weimar Zhuzhou Panzhihua Bandar Lampung Iquique Luohe Szombathely Smyrna Malaybalay Xianyang Nakatsugawa Ghimbav Rosenheim Koganei City Moriguchi Muscat Norden Hakusan Jinhua Kazincbarcika Okaya Oyama Emden Hanyū City Iwata Inagi Tagbilaran Morioka Xingtai Iizuka Jingzhou Chaoyang Uji Sekondi-Takoradi Erlangen Tsubame Pforzheim General Santos Oldenburg Jining Handa Kiyosu Agartala Yinchuan Musashino Hatsukaichi Kadoma Weifang Ōtawara Wollongong Suzuka Worms Aveiro Anan Tsurugashima Ajka Kanuma Medan Taguig Cagayan de Oro Ōdate Kediri Sakaide Nordhausen Yangzhou Madiun Dodoma Jingdezhen Batangas City Hachiōji City Yibin Kolín Roxas Tuguegarao Shimotsuma České Budějovice Hluk Santa Rosa Kameoka Hefei Zhuhai Ma'anshan Siegen Lanzhou Luoyang Lhasa Police nad Metují Ordos City Zhongshan Yachiyo Pasay Körmend Nové Město nad Metují Kazo Česká Lípa Wolfsburg Kiryū Haikou Nishi-Tōkyō City Tacloban Mitaka City Veszprém Izumo Hōfu Lhokseumawe Narita Tatabánya Ishinomaki Daejeon Sivas Annaberg-Buchholz Litvínov Aue Hino City Datong Vyškov Hamm Ontario Florianópolis Bacolod Kashiba Tachikawa City Iligan Munakata Kasai Machida City Kinshasa Blansko Vila Nova de Famalicão Hohenstein-Ernstthal Kizugawa Dijon Celle Gaborone Praia Dongguan Salzgitter Izumi Ueda Ulsan Takizawa Higashine Fujisawa Moravské Budějovice Daitō Batumi Auerbach in der Oberpfalz Noda Hroznětín Hürth Xiaogan Koronadal Eniwa Chișineu-Criș Jaipur Tangshan Quito Kitamoto Las Vegas Baoding Vlašim Pomáz Jilin City Bhopal Niimi Kiyose City Itō Ichinoseki Tokushima Dunaújváros Găești Würzburg Zsámbék
410
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
action count
action filter_multi_types
action find_reverse
entity Nanning
relation headquarters location
type business enterprise
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:headquarters_location resource:Nanning . { ?j rdf:type ?u . VALUES ( ?u ) { ( ontology:social_group ) ( ontology:business_enterprise ) } } } } . FILTER ( ?v < ?r ) . { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:business_enterprise ) ( ontology:social_group ) } } GROUP BY ?m } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q236
P30
Q2221906
USER
Which geographic location is Montenegro a part of ?
(Q236,P30,c(Q2221906))
action filter_type
action find
entity Q236
relation P30
type Q2221906
['Q236', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { resource:Q236 property:P30 ?k . ?k rdf:type ontology:Q2221906 }
Montenegro
action filter_type
action find
entity Montenegro
relation continent
type geographic location
['Montenegro', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { resource:Montenegro property:continent ?k . ?k rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q236,P30,c(Q2221906))
action filter_type
action find
entity Q236
relation P30
type Q2221906
Which geographic location is Montenegro a part of
['Q236', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { resource:Q236 property:P30 ?k . ?k rdf:type ontology:Q2221906 }
Europe
Which geographic location is Montenegro a part of
Europe
action filter_type
action find
entity Montenegro
relation continent
type geographic location
['Montenegro', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { resource:Montenegro property:continent ?k . ?k rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q236
P85
Q484692
USER
Which is the national anthem of Montenegro ?
(Q236,P85,c(Q484692))
action filter_type
action find
entity Q236
relation P85
type Q484692
['Q236', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?s WHERE { resource:Q236 property:P85 ?s . ?s rdf:type ontology:Q484692 }
Montenegro
action filter_type
action find
entity Montenegro
relation anthem
type hymn
['Montenegro', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?s WHERE { resource:Montenegro property:anthem ?s . ?s rdf:type ontology:hymn }
[]
hymn
Q157999
SYSTEM
Oj, svijetla majska zoro
Q157999
(Q236,P85,c(Q484692))
action filter_type
action find
entity Q236
relation P85
type Q484692
The national anthem of Montenegro is [ANSWER]
['Q236', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?s WHERE { resource:Q236 property:P85 ?s . ?s rdf:type ontology:Q484692 }
Oj, svijetla majska zoro
The national anthem of Montenegro is Oj, svijetla majska zoro
Oj, svijetla majska zoro
action filter_type
action find
entity Montenegro
relation anthem
type hymn
['Montenegro', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?s WHERE { resource:Montenegro property:anthem ?s . ?s rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q487687
Q484692
USER
And what about Third Republic of South Korea?
(Q487687,P85,c(Q484692))
action filter_type
action find
entity Q487687
relation P85
type Q484692
['Q487687', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q484692 . resource:Q487687 property:P85 ?e }
Third Republic of South Korea
action filter_type
action find
entity Third Republic of South Korea
relation anthem
type hymn
['Third Republic of South Korea', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:hymn . resource:Third_Republic_of_South_Korea property:anthem ?e }
[]
hymn
Q193233
SYSTEM
Aegukga
Q193233
(Q487687,P85,c(Q484692))
action filter_type
action find
entity Q487687
relation P85
type Q484692
[ANSWER]
['Q487687', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q484692 . resource:Q487687 property:P85 ?e }
Aegukga
Aegukga
action filter_type
action find
entity Third Republic of South Korea
relation anthem
type hymn
['Third Republic of South Korea', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:hymn . resource:Third_Republic_of_South_Korea property:anthem ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q193233
P676
Q502895
USER
Which person wrote the lyrics of that hymn ?
(Q193233,P676,c(Q502895))
action filter_type
action find
entity Q193233
relation P676
type Q502895
['Q193233', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q193233 property:P676 ?d . ?d rdf:type ontology:Q502895 }
Aegukga
action filter_type
action find
entity Aegukga
relation lyrics by
type common name
['Aegukga', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Aegukga property:lyrics_by ?d . ?d rdf:type ontology:common_name }
[]
common name
Q192111
SYSTEM
Yun Chi-ho
Q192111
(Q193233,P676,c(Q502895))
action filter_type
action find
entity Q193233
relation P676
type Q502895
[ANSWER] wrote the lyrics of that hymn
['Q193233', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q193233 property:P676 ?d . ?d rdf:type ontology:Q502895 }
Yun Chi-ho
Yun Chi-ho wrote the lyrics of that hymn
Yun Chi-ho
action filter_type
action find
entity Aegukga
relation lyrics by
type common name
['Aegukga', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Aegukga property:lyrics_by ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do max number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?u WHERE { FILTER ( ?v = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?w } } }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?u WHERE { FILTER ( ?v = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?w } } }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people know how [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?u WHERE { FILTER ( ?v = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?w } } }
piano
Max number of people know how piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?u WHERE { FILTER ( ?v = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?x ) WHERE { ?y property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?w } } }
[]