Simple Question (Direct)
Simple Question
Q762522
P106
Q12737077
USER
Which occupations have August Krüger as his/her 's career ?
(Q762522,P106,c(Q12737077))
action filter_type
action find
entity Q762522
relation P106
type Q12737077
['Q762522', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q762522 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
August Krüger
action filter_type
action find
entity August Krüger
relation occupation
type occupation
['August Krüger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:August_Krüger property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q36180 Q37226
SYSTEM
writer, teacher
Q36180 Q37226
(Q762522,P106,c(Q12737077))
action filter_type
action find
entity Q762522
relation P106
type Q12737077
[ANSWERS] have August Krüger as his/her 's career
['Q762522', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q762522 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
writer teacher
Writer and teacher have August Krüger as his/her 's career
writer teacher
action filter_type
action find
entity August Krüger
relation occupation
type occupation
['August Krüger', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:August_Krüger property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q762522
P27
Q1048835
USER
Which political territory does August Krüger belong to ?
(Q762522,P27,c(Q1048835))
action filter_type
action find
entity Q762522
relation P27
type Q1048835
['Q762522', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q762522 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
August Krüger
action filter_type
action find
entity August Krüger
relation country of citizenship
type political territorial entity
['August Krüger', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:August_Krüger property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q762522,P27,c(Q1048835))
action filter_type
action find
entity Q762522
relation P27
type Q1048835
August Krüger belongs to [ANSWER]
['Q762522', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q762522 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
Germany
August Krüger belongs to Germany
Germany
action filter_type
action find
entity August Krüger
relation country of citizenship
type political territorial entity
['August Krüger', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:August_Krüger property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P163
Q14660
USER
Which flag is associated with that political territory ?
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q183 property:P163 ?l . ?l rdf:type ontology:Q14660 }
Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:Germany property:flag ?l . ?l rdf:type ontology:flag }
[]
flag
Q48160
SYSTEM
flag of Germany
Q48160
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
The [ANSWER] is associated with that political territory
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q183 property:P163 ?l . ?l rdf:type ontology:Q14660 }
flag of Germany
The flag of Germany is associated with that political territory
flag of Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:Germany property:flag ?l . ?l rdf:type ontology:flag }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q183
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with Germany ?
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q183 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Germany
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Germany property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
124
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q183 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
124
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Germany property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q230
P530
Q15617994
USER
And how about Georgia?
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q230 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
Georgia
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Georgia property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
80
Q805 Q801 Q800 Q668 Q414 Q145 Q262 Q784 Q786 Q710 Q252 Q399 Q398 Q43 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q986 Q822 Q241 Q424 Q921 Q31 Q30 Q37 Q38 Q739 Q423 Q983 Q851 Q734 Q1011 Q736 Q27 Q29 Q819 Q189 Q184 Q32 Q347 Q227 Q225 Q222 Q229 Q228 Q17 Q902 Q1008 Q191 Q965 Q967 Q963 Q115 Q114 Q117 Q750 Q211 Q219 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q970 Q686 Q874 Q79 Q878 Q774 Q810 Q1016 Q1013 Q953
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
[ANSWER]
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q230 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
Yemen Israel Costa Rica India Argentina United Kingdom Algeria Dominica Dominican Republic Kiribati Indonesia Armenia Bahrain Turkey Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Eritrea Lebanon Cuba Cambodia Brunei Belgium United States of America Lithuania Italy Colombia North Korea Equatorial Guinea Saudi Arabia Guyana Cape Verde Ecuador Ireland Spain Laos Iceland Belarus Luxembourg Liechtenstein Azerbaijan Bosnia and Herzegovina Albania Cyprus Andorra Japan Bangladesh Côte d'Ivoire Estonia Burkina Faso Burundi Botswana Ethiopia Kenya Ghana Bolivia Latvia Bulgaria Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Comoros Vanuatu Turkmenistan Egypt United Arab Emirates Guatemala Jordan Libya Lesotho Zambia
80
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Georgia property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q16
Q15617994
USER
And how about Canada?
(Q16,P530,c(Q15617994))
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?z }
Canada
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?z }
[]
designation for an administrative territorial entity
SYSTEM
34
(Q16,P530,c(Q15617994))
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWER]
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?z }
34
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?z }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P88
Q502895 Q3062294 Q18783400
USER
How many people commissioned around 1 Latin phrases and genres of sculpture ?
(c(Q3062294)|c(Q18783400),P88,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3062294
action find_reverse_tuple_counts
relation P88
type Q502895
type Q18783400
value 1
[[{'concept': 'Q3062294'}, {'concept': 'Q18783400'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:P88 ?m . ?m rdf:type ontology:Q502895 . ?h rdf:type ontology:Q18783400 } UNION { ?h property:P88 ?m . ?m rdf:type ontology:Q502895 . ?h rdf:type ontology:Q3062294 } } GROUP BY ?m } . FILTER ( ?t = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type Latin phrase
action find_reverse_tuple_counts
relation commissioned by
type common name
type genre of sculpture
value 1
[[{'concept': 'Latin phrase'}, {'concept': 'genre of sculpture'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?h rdf:type ontology:genre_of_sculpture } UNION { ?h property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?h rdf:type ontology:Latin_phrase } } GROUP BY ?m } . FILTER ( ?t = 1 ) }
[]
common name Latin phrase genre of sculpture
SYSTEM
11
Q48544 Q7811659 Q2871482 Q3766950 Q6224954 Q336580 Q338480 Q590218 Q16745596 Q517 Q25690
(c(Q3062294)|c(Q18783400),P88,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3062294
action find_reverse_tuple_counts
relation P88
type Q502895
type Q18783400
value 1
[ANSWER]
[[{'concept': 'Q3062294'}, {'concept': 'Q18783400'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:P88 ?m . ?m rdf:type ontology:Q502895 . ?h rdf:type ontology:Q18783400 } UNION { ?h property:P88 ?m . ?m rdf:type ontology:Q502895 . ?h rdf:type ontology:Q3062294 } } GROUP BY ?m } . FILTER ( ?t = 1 ) }
Cosimo de' Medici Tobias Rustat Auguste de Morlhon Giovanni Carandente John Campbell, 1st Baron Cawdor Gerald Grosvenor, 6th Duke of Westminster Nicolas Rolin Ferenc Esterházy Jacopo Pesaro Napoleon John Russell, 6th Duke of Bedford
11
action count
action approx
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type Latin phrase
action find_reverse_tuple_counts
relation commissioned by
type common name
type genre of sculpture
value 1
[[{'concept': 'Latin phrase'}, {'concept': 'genre of sculpture'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?t ) WHERE { { ?h property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?h rdf:type ontology:genre_of_sculpture } UNION { ?h property:commissioned_by ?m . ?m rdf:type ontology:common_name . ?h rdf:type ontology:Latin_phrase } } GROUP BY ?m } . FILTER ( ?t = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P138
Q7275
USER
Which states are namesakes of that political territory ?
action filter_type
action find
entity Q183
relation P138
type Q7275
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q7275 . resource:Q183 property:P138 ?b }
Germany
action filter_type
action find
entity Germany
relation named after
type state
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:state . resource:Germany property:named_after ?b }
[]
state
Q38872 Q980
SYSTEM
Prussia, Bavaria
Q38872 Q980
action filter_type
action find
entity Q183
relation P138
type Q7275
[ANSWERS] are namesakes of that political territory
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q7275 . resource:Q183 property:P138 ?b }
Prussia Bavaria
Prussia and Bavaria are namesakes of that political territory
Prussia Bavaria
action filter_type
action find
entity Germany
relation named after
type state
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:state . resource:Germany property:named_after ?b }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q7275 Q515
USER
Which cities are the county seat of atmost 3 states ?
(c(Q515),P1376,c(Q7275))
action atmost
action find_tuple_counts
relation P1376
type Q515
type Q7275
value 3
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?x ) WHERE { ?k property:P1376 ?q . ?k rdf:type ontology:Q515 . ?q rdf:type ontology:Q7275 } GROUP BY ?k } . FILTER ( ?x <= 3 ) }
action atmost
action find_tuple_counts
relation capital of
type city
type state
value 3
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?x ) WHERE { ?k property:capital_of ?q . ?k rdf:type ontology:city . ?q rdf:type ontology:state } GROUP BY ?k } . FILTER ( ?x <= 3 ) }
[]
state city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q15826 Q373542 Q780731 Q39738 Q3572 Q10126 Q843001 Q1710 Q843006 Q843009 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q19689 Q873377 Q853746 Q8131 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q3624 Q592338 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q5779 Q932806 Q377834 Q295367 Q653389 Q851097 Q1696 Q861292 Q41474 Q57953 Q917888 Q1070920 Q174096 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q3926 Q11462 Q834567 Q851675 Q3214 Q842908 Q23482 Q505208 Q1000336 Q911530 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q1899 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q1794 Q793405 Q665 Q375097 Q911558 Q59144 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q1461 Q843018 Q14499 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q23430 Q225257 Q35925 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q1519 Q8684 Q270704 Q3838 Q167109 Q3104 Q734378 Q459787 Q585630 Q855529 Q7248 Q4346 Q1107569 Q1025387 Q6602 Q602042 Q237699 Q207406 Q517407 Q23661 Q191651 Q7856199 Q3904 Q325164 Q305640 Q14819 Q5285 Q14182 Q740810 Q1069007 Q861221 Q911667 Q6807568 Q7568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q3852 Q846652 Q7786 Q10104 Q3859 Q155975 Q19660 Q1020939 Q674311 Q3915 Q155674 Q863747 Q841125 Q314686 Q487439 Q385591 Q1953 Q124375 Q933641 Q854940 Q2180 Q714628 Q335427 Q177149 Q9005 Q2337 Q633789 Q1330294 Q14960 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2978 Q2973 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q564234 Q3958 Q488990 Q3955 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q1854 Q1856 Q855016 Q3787 Q855011 Q308657 Q4007 Q480421 Q14168 Q823907 Q7070 Q3826 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q542154 Q2526233 Q946769 Q846351 Q739304 Q789233 Q7253 Q2936 Q530634 Q4827 Q877227 Q5753 Q429409 Q2749 Q193719 Q170454 Q211243 Q841603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q11194 Q386682 Q63145 Q2119 Q390796 Q271917 Q5972 Q1720 Q1721 Q83247 Q1645 Q7578 Q390798 Q11443 Q7033 Q14126 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q183584 Q2907 Q15847 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q20073 Q1863 Q1865 Q2209 Q2200 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q206872 Q72778 Q1355 Q146363 Q208818 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q107401 Q71159 Q3355306 Q57944 Q189761 Q189769 Q1761 Q57948 Q2795 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3931 Q726993 Q3919 Q3751 Q3750 Q3616 Q42666 Q738013 Q894059 Q933638 Q183111 Q40584 Q1067897 Q25475 Q11506 Q613813 Q375862 Q107624 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515),P1376,c(Q7275))
action atmost
action find_tuple_counts
relation P1376
type Q515
type Q7275
value 3
[ANSWERS] are the county seat of atmost 3 states
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?x ) WHERE { ?k property:P1376 ?q . ?k rdf:type ontology:Q515 . ?q rdf:type ontology:Q7275 } GROUP BY ?k } . FILTER ( ?x <= 3 ) }
Palu Szigetvár Szeghalom Laoag Tunis Serang Csorna Isabela City Nagykálló Marcali Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Tirana Dumaguete Bátonyterenye Palembang Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Jayapura Makó Tübingen Jászberény Bélapátfalva Addis Ababa Marawi Mar del Plata Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Banda Aceh Polgárdi Szentes Nagyatád Nobeoka Iiyama Legazpi Hitoyoshi Kingstown Schwarzenberg Vinaròs Mamuju Sorsogon City Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Toyooka Pétervására Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Pretoria Surabaya Bonyhád Takahashi Cottbus Gyál Marseille Ouarzazate Tandil Hajdúhadház Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Kunszentmárton Florianópolis Kiskunfélegyháza Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Kyiv Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány Frankfurt Berettyóújfalu Lugdunum Tiszaújváros Putnok Zhanjiang Torgau Kiskunmajsa Saga Békéscsaba Durjaya Tsu Buenos Aires Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Manila Kunszentmiklós Samarinda Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Ulaanbaatar Rupea Tabuk Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Abu Dhabi Seoul Třebíč Kinshasa Eger Koblenz Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Maasin Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Wellington Masbate City Turquoise Mountain Mbabane Kayes Abashiri Freiberg Tarlac Banjarmasin Békés Washukanni Nakatsu Elek Emmen Yogyakarta Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Worms Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Bucharest Digos Kisvárda Antananarivo Tandag Uda Tsuyama Mati Oral Ōmura Yerevan Hódmezővásárhely Martonvásár Dabas Malolos Rumoi Kisarazu Obihiro Brussels Smolensk Dombóvár Jiankang Brno Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Regensburg Darmstadt Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Annaka Neubrandenburg Kostanay Weimar Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Ho Chi Minh City Malaybalay Csurgó Abuja Heves Minas Tirith Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Muscat Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Caracas Morioka Lucknow Patna Ungaran Hirado Koronadal Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Padang Oldenburg Pilisvörösvár Vyritsa Ogi Samarkand Szob Augsburg Cheb Agartala Yinchuan Tiszakécske Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Sarajevo Khost Imus Mannheim Orosháza Kushiro Medan Mainz Wiesbaden Braga Cagayan de Oro Jambi Szentendre Kediri Nordhausen Mataram Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Lanzhou Sucre Manado Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Kuala Lumpur Roxas Tuguegarao Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Ajka Taiyuan Bangalore Most Fuchū Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Sivas Brand-Erbisdorf Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Dublin Aue Chemnitz Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Edoras Kaposvár Bacolod Lenti Catbalogan Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Brandenburg an der Havel Cotabato City Gaborone Praia Gera Tehran Shaoxing Xàtiva Borongan Mezőkövesd Jihlava San Fernando Oroquieta Batumi Denpasar Kőszeg Nyíradony Calapan Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Hurghada Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
Buenos Aires, Riga and Kyiv are the county seat of atmost 3 states
Buenos Aires Riga Kyiv
action atmost
action find_tuple_counts
relation capital of
type city
type state
value 3
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?x ) WHERE { ?k property:capital_of ?q . ?k rdf:type ontology:city . ?q rdf:type ontology:state } GROUP BY ?k } . FILTER ( ?x <= 3 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2887
P190
Q515
USER
Are Santiago partner town of those ones ?
(Q2887,P190,Q1486) (Q2887,P190,Q1773) (Q2887,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q2887
relation P190
['Q2887', 'P190', 'Q1486'] ['Q2887', 'P190', 'Q1773'] ['Q2887', 'P190', 'Q1899']
ASK WHERE { VALUES ( ?c ) { ( resource:Q15826 ) ( resource:Q373542 ) ( resource:Q780731 ) } . resource:Q2887 property:P190 ?c }
Santiago
action is_in
entity prev_answer
action find
entity Santiago
relation sister city
['Santiago', 'sister city', 'Buenos Aires'] ['Santiago', 'sister city', 'Riga'] ['Santiago', 'sister city', 'Kyiv']
ASK WHERE { VALUES ( ?c ) { ( resource:Palu ) ( resource:Szigetvár ) ( resource:Szeghalom ) } . resource:Santiago property:sister_city ?c }
[]
city
SYSTEM
YES
(Q2887,P190,Q1486) (Q2887,P190,Q1773) (Q2887,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q2887
relation P190
[ANSWER]
['Q2887', 'P190', 'Q1486'] ['Q2887', 'P190', 'Q1773'] ['Q2887', 'P190', 'Q1899']
ASK WHERE { VALUES ( ?c ) { ( resource:Q15826 ) ( resource:Q373542 ) ( resource:Q780731 ) } . resource:Q2887 property:P190 ?c }
Yes
action is_in
entity prev_answer
action find
entity Santiago
relation sister city
['Santiago', 'sister city', 'Buenos Aires'] ['Santiago', 'sister city', 'Riga'] ['Santiago', 'sister city', 'Kyiv']
ASK WHERE { VALUES ( ?c ) { ( resource:Palu ) ( resource:Szigetvár ) ( resource:Szeghalom ) } . resource:Santiago property:sister_city ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1899
P47
Q1048835
USER
Which political territory is bordered by Kyiv ?
(Q1899,P47,c(Q1048835))
action filter_type
action find
entity Q1899
relation P47
type Q1048835
['Q1899', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1899 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Kyiv
action filter_type
action find
entity Kyiv
relation shares border with
type political territorial entity
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kyiv property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q170036
SYSTEM
Kiev Oblast
Q170036
(Q1899,P47,c(Q1048835))
action filter_type
action find
entity Q1899
relation P47
type Q1048835
Ukraine [ANSWER] is bordered by Kyiv
['Q1899', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1899 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Kiev Oblast
Ukraine Kiev Oblast is bordered by Kyiv
Kiev Oblast
action filter_type
action find
entity Kyiv
relation shares border with
type political territorial entity
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kyiv property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15938
Q1048835
USER
And what about El Bruc?
(Q15938,P47,c(Q1048835))
action filter_type
action find
entity Q15938
relation P47
type Q1048835
['Q15938', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q15938 property:P47 ?s }
El Bruc
action filter_type
action find
entity El Bruc
relation shares border with
type political territorial entity
['El Bruc', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:El_Bruc property:shares_border_with ?s }
[]
political territorial entity
Q15959 Q15949 Q16685
SYSTEM
Piera, Els Hostalets de Pierola, Castellfollit del Boix
Q15959 Q15600 Q15949 Q16733 Q15946 Q16685 Q16704 Q16698
(Q15938,P47,c(Q1048835))
action filter_type
action find
entity Q15938
relation P47
type Q1048835
[ANSWERS]
['Q15938', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q15938 property:P47 ?s }
Piera Collbató Els Hostalets de Pierola Sant Salvador de Guardiola Castellolí Castellfollit del Boix Monistrol de Montserrat Marganell
Piera Els Hostalets de Pierola Castellfollit del Boix
action filter_type
action find
entity El Bruc
relation shares border with
type political territorial entity
['El Bruc', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:El_Bruc property:shares_border_with ?s }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15938
P47
Q1048835
USER
Does El Bruc share border with those ones ?
(Q15938,P47,Q15959) (Q15938,P47,Q15949) (Q15938,P47,Q16685)
action is_in
entity prev_answer
action find
entity Q15938
relation P47
['Q15938', 'P47', 'Q15959'] ['Q15938', 'P47', 'Q15949'] ['Q15938', 'P47', 'Q16685']
ASK WHERE { resource:Q15938 property:P47 ?d . VALUES ( ?d ) { ( resource:Q15959 ) ( resource:Q15600 ) ( resource:Q15949 ) } }
El Bruc
action is_in
entity prev_answer
action find
entity El Bruc
relation shares border with
['El Bruc', 'shares border with', 'Piera'] ['El Bruc', 'shares border with', 'Els Hostalets de Pierola'] ['El Bruc', 'shares border with', 'Castellfollit del Boix']
ASK WHERE { resource:El_Bruc property:shares_border_with ?d . VALUES ( ?d ) { ( resource:Piera ) ( resource:Collbató ) ( resource:Els_Hostalets_de_Pierola ) } }
[]
political territorial entity
SYSTEM
YES
(Q15938,P47,Q15959) (Q15938,P47,Q15949) (Q15938,P47,Q16685)
action is_in
entity prev_answer
action find
entity Q15938
relation P47
[ANSWER]
['Q15938', 'P47', 'Q15959'] ['Q15938', 'P47', 'Q15949'] ['Q15938', 'P47', 'Q16685']
ASK WHERE { resource:Q15938 property:P47 ?d . VALUES ( ?d ) { ( resource:Q15959 ) ( resource:Q15600 ) ( resource:Q15949 ) } }
Yes
action is_in
entity prev_answer
action find
entity El Bruc
relation shares border with
['El Bruc', 'shares border with', 'Piera'] ['El Bruc', 'shares border with', 'Els Hostalets de Pierola'] ['El Bruc', 'shares border with', 'Castellfollit del Boix']
ASK WHERE { resource:El_Bruc property:shares_border_with ?d . VALUES ( ?d ) { ( resource:Piera ) ( resource:Collbató ) ( resource:Els_Hostalets_de_Pierola ) } }
[]