Simple Question (Direct)
Simple Question
Q1398560
P21
Q290
USER
Which sex does Taccola belong to ?
(Q1398560,P21,c(Q290))
action filter_type
action find
entity Q1398560
relation P21
type Q290
['Q1398560', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q1398560 property:P21 ?e . ?e rdf:type ontology:Q290 }
Taccola
action filter_type
action find
entity Taccola
relation gender
type sex
['Taccola', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Taccola property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1398560,P21,c(Q290))
action filter_type
action find
entity Q1398560
relation P21
type Q290
Taccola belongs to [ANSWER]
['Q1398560', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q1398560 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Taccola belongs to male
male
action filter_type
action find
entity Taccola
relation gender
type sex
['Taccola', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Taccola property:gender ?e . ?e rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1339808 Q1398560
P19
Q56061
USER
Which administrative territories are the places of birth of Taccola or Alexander Davydov ?
OR((Q1398560,P19,c(Q56061)), (Q1339808,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1398560
relation P19
action find
entity Q1339808
relation P19
type Q56061
{'OR': [['Q1398560', 'P19', {'concept': 'Q56061'}], ['Q1339808', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1339808 property:P19 ?m } UNION { resource:Q1398560 property:P19 ?m } } . ?m rdf:type ontology:Q56061 }
Alexander Davydov Taccola
action filter_type
action union
action find
entity Taccola
relation place of birth
action find
entity Alexander Davydov
relation place of birth
type administrative territorial entity
{'OR': [['Taccola', 'place of birth', {'concept': 'administrative territorial entity'}], ['Alexander Davydov', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Alexander_Davydov property:place_of_birth ?m } UNION { resource:Taccola property:place_of_birth ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q33345 Q2751
SYSTEM
Yevpatoria, Siena
Q33345 Q2751
OR((Q1398560,P19,c(Q56061)), (Q1339808,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1398560
relation P19
action find
entity Q1339808
relation P19
type Q56061
[ANSWERS] are the places of birth of Taccola or Alexander Davydov
{'OR': [['Q1398560', 'P19', {'concept': 'Q56061'}], ['Q1339808', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1339808 property:P19 ?m } UNION { resource:Q1398560 property:P19 ?m } } . ?m rdf:type ontology:Q56061 }
Yevpatoria Siena
Yevpatoria and Siena are the places of birth of Taccola or Alexander Davydov
Yevpatoria Siena
action filter_type
action union
action find
entity Taccola
relation place of birth
action find
entity Alexander Davydov
relation place of birth
type administrative territorial entity
{'OR': [['Taccola', 'place of birth', {'concept': 'administrative territorial entity'}], ['Alexander Davydov', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Alexander_Davydov property:place_of_birth ?m } UNION { resource:Taccola property:place_of_birth ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2751
P190
Q515 Q20667921
USER
How many cities and french administrative divisions are twin town of Siena ?
(c(Q515),P190,Q2751) (c(Q20667921),P190,Q2751)
action count
action union
action filter_type
action find_reverse
entity Q2751
relation P190
type Q515
action filter_type
action find_reverse
entity Q2751
relation P190
type Q20667921
[{'concept': 'Q515'}, 'P190', 'Q2751'] [{'concept': 'Q20667921'}, 'P190', 'Q2751']
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { ?i rdf:type ontology:Q515 . ?i property:P190 resource:Q2751 } UNION { ?i property:P190 resource:Q2751 . ?i rdf:type ontology:Q20667921 } }
Siena
action count
action union
action filter_type
action find_reverse
entity Siena
relation sister city
type city
action filter_type
action find_reverse
entity Siena
relation sister city
type type of french administrative division
[{'concept': 'city'}, 'sister city', 'Siena'] [{'concept': 'type of french administrative division'}, 'sister city', 'Siena']
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { ?i rdf:type ontology:city . ?i property:sister_city resource:Siena } UNION { ?i property:sister_city resource:Siena . ?i rdf:type ontology:type_of_french_administrative_division } }
[]
city type of french administrative division
SYSTEM
1 cities and 1 french administrative divisions
Q3955 Q6397
(c(Q515),P190,Q2751) (c(Q20667921),P190,Q2751)
action count
action union
action filter_type
action find_reverse
entity Q2751
relation P190
type Q515
action filter_type
action find_reverse
entity Q2751
relation P190
type Q20667921
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q2751'] [{'concept': 'Q20667921'}, 'P190', 'Q2751']
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { ?i rdf:type ontology:Q515 . ?i property:P190 resource:Q2751 } UNION { ?i property:P190 resource:Q2751 . ?i rdf:type ontology:Q20667921 } }
Weimar Avignon
1 cities and 1 french administrative divisions
action count
action union
action filter_type
action find_reverse
entity Siena
relation sister city
type city
action filter_type
action find_reverse
entity Siena
relation sister city
type type of french administrative division
[{'concept': 'city'}, 'sister city', 'Siena'] [{'concept': 'type of french administrative division'}, 'sister city', 'Siena']
SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { { ?i rdf:type ontology:city . ?i property:sister_city resource:Siena } UNION { ?i property:sister_city resource:Siena . ?i rdf:type ontology:type_of_french_administrative_division } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7176870 Q1339808
P20
Q515
USER
Which cities did the expiration of Alexander Davydov or Peter Seton Hay occur ?
OR((Q1339808,P20,c(Q515)), (Q7176870,P20,c(Q515)))
action filter_type
action union
action find
entity Q1339808
relation P20
action find
entity Q7176870
relation P20
type Q515
{'OR': [['Q1339808', 'P20', {'concept': 'Q515'}], ['Q7176870', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?y ) { ( resource:Q7176870 ) ( resource:Q1339808 ) } . ?y property:P20 ?z } . ?z rdf:type ontology:Q515 }
Peter Seton Hay Alexander Davydov
action filter_type
action union
action find
entity Alexander Davydov
relation place of death
action find
entity Peter Seton Hay
relation place of death
type city
{'OR': [['Alexander Davydov', 'place of death', {'concept': 'city'}], ['Peter Seton Hay', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?y ) { ( resource:Peter_Seton_Hay ) ( resource:Alexander_Davydov ) } . ?y property:place_of_death ?z } . ?z rdf:type ontology:city }
[]
city
Q23661 Q1899
SYSTEM
Wellington, Kyiv
Q23661 Q1899
OR((Q1339808,P20,c(Q515)), (Q7176870,P20,c(Q515)))
action filter_type
action union
action find
entity Q1339808
relation P20
action find
entity Q7176870
relation P20
type Q515
[ANSWERS] did the expiration of Alexander Davydov or Peter Seton Hay occur
{'OR': [['Q1339808', 'P20', {'concept': 'Q515'}], ['Q7176870', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?y ) { ( resource:Q7176870 ) ( resource:Q1339808 ) } . ?y property:P20 ?z } . ?z rdf:type ontology:Q515 }
Wellington Kyiv
Wellington and Kyiv did the expiration of Alexander Davydov or Peter Seton Hay occur
Wellington Kyiv
action filter_type
action union
action find
entity Alexander Davydov
relation place of death
action find
entity Peter Seton Hay
relation place of death
type city
{'OR': [['Alexander Davydov', 'place of death', {'concept': 'city'}], ['Peter Seton Hay', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?y ) { ( resource:Peter_Seton_Hay ) ( resource:Alexander_Davydov ) } . ?y property:place_of_death ?z } . ?z rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q956
P190
Q56061
USER
Are Beijing twin town of those cities ?
(Q956,P190,Q23661) (Q956,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q956
relation P190
['Q956', 'P190', 'Q23661'] ['Q956', 'P190', 'Q1899']
ASK WHERE { VALUES ( ?t ) { ( resource:Q23661 ) ( resource:Q1899 ) } . resource:Q956 property:P190 ?t }
Beijing
action is_in
entity prev_answer
action find
entity Beijing
relation sister city
['Beijing', 'sister city', 'Wellington'] ['Beijing', 'sister city', 'Kyiv']
ASK WHERE { VALUES ( ?t ) { ( resource:Wellington ) ( resource:Kyiv ) } . resource:Beijing property:sister_city ?t }
[]
administrative territorial entity
SYSTEM
YES
(Q956,P190,Q23661) (Q956,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q956
relation P190
[ANSWER]
['Q956', 'P190', 'Q23661'] ['Q956', 'P190', 'Q1899']
ASK WHERE { VALUES ( ?t ) { ( resource:Q23661 ) ( resource:Q1899 ) } . resource:Q956 property:P190 ?t }
Yes
action is_in
entity prev_answer
action find
entity Beijing
relation sister city
['Beijing', 'sister city', 'Wellington'] ['Beijing', 'sister city', 'Kyiv']
ASK WHERE { VALUES ( ?t ) { ( resource:Wellington ) ( resource:Kyiv ) } . resource:Beijing property:sister_city ?t }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15723555 Q7176870
P27
Q1048835
USER
Which political territories are Peter Seton Hay or Johann von Komorzynski a civilian of ?
OR((Q7176870,P27,c(Q1048835)), (Q15723555,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q7176870
relation P27
action find
entity Q15723555
relation P27
type Q1048835
{'OR': [['Q7176870', 'P27', {'concept': 'Q1048835'}], ['Q15723555', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7176870 property:P27 ?x } UNION { resource:Q15723555 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
Johann von Komorzynski Peter Seton Hay
action filter_type
action union
action find
entity Peter Seton Hay
relation country of citizenship
action find
entity Johann von Komorzynski
relation country of citizenship
type political territorial entity
{'OR': [['Peter Seton Hay', 'country of citizenship', {'concept': 'political territorial entity'}], ['Johann von Komorzynski', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Peter_Seton_Hay property:country_of_citizenship ?x } UNION { resource:Johann_von_Komorzynski property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q40
SYSTEM
New Zealand, Austria
Q664 Q40
OR((Q7176870,P27,c(Q1048835)), (Q15723555,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q7176870
relation P27
action find
entity Q15723555
relation P27
type Q1048835
[ANSWERS] are Peter Seton Hay or Johann von Komorzynski a civilian of
{'OR': [['Q7176870', 'P27', {'concept': 'Q1048835'}], ['Q15723555', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7176870 property:P27 ?x } UNION { resource:Q15723555 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
New Zealand Austria
New Zealand and Austria are Peter Seton Hay or Johann von Komorzynski a civilian of
New Zealand Austria
action filter_type
action union
action find
entity Peter Seton Hay
relation country of citizenship
action find
entity Johann von Komorzynski
relation country of citizenship
type political territorial entity
{'OR': [['Peter Seton Hay', 'country of citizenship', {'concept': 'political territorial entity'}], ['Johann von Komorzynski', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Peter_Seton_Hay property:country_of_citizenship ?x } UNION { resource:Johann_von_Komorzynski property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q664
P276
Q15275719
USER
Which recurring event is located at that political territory ?
(c(Q15275719),P276,Q664)
action filter_type
action find_reverse
entity Q664
relation P276
type Q15275719
[{'concept': 'Q15275719'}, 'P276', 'Q664']
SELECT DISTINCT ?o WHERE { ?o property:P276 resource:Q664 . ?o rdf:type ontology:Q15275719 }
New Zealand
action filter_type
action find_reverse
entity New Zealand
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'New Zealand']
SELECT DISTINCT ?o WHERE { ?o property:location resource:New_Zealand . ?o rdf:type ontology:recurring_event }
[]
recurring event
Clarification for simple ques.
Q664
SYSTEM
Did you mean New Zealand ?
Q664 Q40
(c(Q15275719),P276,Q664) (c(Q15275719),P276,Q40)
[ANSWER]
[{'concept': 'Q15275719'}, 'P276', 'Q664'] [{'concept': 'Q15275719'}, 'P276', 'Q40']
SELECT DISTINCT ?o WHERE { ?o property:P276 resource:Q664 . ?o rdf:type ontology:Q15275719 }
New Zealand Austria
Did you mean New Zealand ?
New Zealand
[{'concept': 'recurring event'}, 'location', 'New Zealand'] [{'concept': 'recurring event'}, 'location', 'Austria']
SELECT DISTINCT ?o WHERE { ?o property:location resource:New_Zealand . ?o rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15275719),P276,Q664)
[{'concept': 'Q15275719'}, 'P276', 'Q664']
[{'concept': 'recurring event'}, 'location', 'New Zealand']
[]
Q4638636
SYSTEM
48HOURS
Q4638636
(c(Q15275719),P276,Q664)
action filter_type
action find_reverse
entity Q664
relation P276
type Q15275719
[ANSWER] is located at that political territory
[{'concept': 'Q15275719'}, 'P276', 'Q664']
SELECT DISTINCT ?o WHERE { ?o property:P276 resource:Q664 . ?o rdf:type ontology:Q15275719 }
48HOURS
48HOURS is located at that political territory
48HOURS
action filter_type
action find_reverse
entity New Zealand
relation location
type recurring event
[{'concept': 'recurring event'}, 'location', 'New Zealand']
SELECT DISTINCT ?o WHERE { ?o property:location resource:New_Zealand . ?o rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4638636
P276
Q1048835
USER
Where is that recurring event situated ?
(Q4638636,P276,c(Q1048835))
action filter_type
action find
entity Q4638636
relation P276
type Q1048835
['Q4638636', 'P276', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q4638636 property:P276 ?q . ?q rdf:type ontology:Q1048835 }
48HOURS
action filter_type
action find
entity 48HOURS
relation location
type political territorial entity
['48HOURS', 'location', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:48HOURS property:location ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664
SYSTEM
New Zealand
Q664
(Q4638636,P276,c(Q1048835))
action filter_type
action find
entity Q4638636
relation P276
type Q1048835
That recurring event is situated in [ANSWER]
['Q4638636', 'P276', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q4638636 property:P276 ?q . ?q rdf:type ontology:Q1048835 }
New Zealand
That recurring event is situated in New Zealand
New Zealand
action filter_type
action find
entity 48HOURS
relation location
type political territorial entity
['48HOURS', 'location', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:48HOURS property:location ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3919
P1376
Q13220204 Q15617994 Q515
USER
Which cities are center of administration for lesser number of administrative country subdivisions or administrative territories than Gaborone ?
(c(Q515),P1376,c(Q13220204)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action count
action filter_multi_types
action find
entity Q3919
relation P1376
type Q13220204
type Q15617994
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { { ?a property:P1376 ?q . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q515 } UNION { ?a property:P1376 ?q . ?a rdf:type ontology:Q515 . ?q rdf:type ontology:Q13220204 } } GROUP BY ?a } . FILTER ( ?l < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Q3919 property:P1376 ?z . { { ?z rdf:type ontology:Q13220204 } UNION { ?z rdf:type ontology:Q15617994 } } } } }
Gaborone
action less
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 designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Gaborone
relation capital of
type second-level administrative country subdivision
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { { ?a property:capital_of ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:city } UNION { ?a property:capital_of ?q . ?a rdf:type ontology:city . ?q rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?a } . FILTER ( ?l < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Gaborone property:capital_of ?z . { { ?z rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
second-level administrative country subdivision designation for an administrative territorial entity city
Q1731 Q1794 Q14960
SYSTEM
Dresden, Frankfurt, Brno
Q15826 Q373542 Q780731 Q39738 Q10126 Q843001 Q1710 Q843006 Q843009 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q8131 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q4024 Q379030 Q1711 Q27860 Q240504 Q3806 Q281371 Q258884 Q592338 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q903177 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 Q43196 Q855032 Q404529 Q5954 Q11462 Q834567 Q851675 Q3214 Q842908 Q1000336 Q911530 Q181276 Q583137 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q1794 Q793405 Q665 Q375097 Q911558 Q59144 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q843018 Q14499 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q12245 Q16959 Q10389 Q650015 Q30340 Q225257 Q35925 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q270704 Q167109 Q734378 Q459787 Q585630 Q855529 Q4346 Q1107569 Q1025387 Q602042 Q237699 Q207406 Q517407 Q23661 Q191651 Q7856199 Q325164 Q14819 Q5285 Q14182 Q740810 Q1069007 Q861221 Q911667 Q842971 Q842976 Q181007 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q3852 Q846652 Q7786 Q10104 Q155975 Q1020939 Q674311 Q155674 Q863747 Q841125 Q314686 Q487439 Q385591 Q124375 Q933641 Q854940 Q2180 Q335427 Q9005 Q2337 Q633789 Q1330294 Q14960 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2973 Q137271 Q855060 Q843028 Q842996 Q679249 Q843021 Q680743 Q564234 Q3958 Q488990 Q3955 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q329775 Q1854 Q1856 Q855016 Q855011 Q308657 Q4007 Q480421 Q14168 Q823907 Q642031 Q55598 Q498011 Q214948 Q214945 Q182852 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 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 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q2119 Q390796 Q5972 Q1721 Q1645 Q7578 Q390798 Q11443 Q7033 Q14126 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q183584 Q15847 Q843014 Q11725 Q604516 Q73156 Q732300 Q789510 Q20073 Q2209 Q2200 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q206872 Q72778 Q1355 Q146363 Q208818 Q187136 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q187821 Q203344 Q107401 Q71159 Q3355306 Q57944 Q189761 Q189769 Q57948 Q2795 Q378225 Q954569 Q738275 Q69060 Q8179 Q727383 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q489147 Q755701 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3931 Q726993 Q42666 Q738013 Q894059 Q933638 Q183111 Q40584 Q1067897 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515),P1376,c(Q13220204)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action count
action filter_multi_types
action find
entity Q3919
relation P1376
type Q13220204
type Q15617994
[ANSWERS] are center of administration for lesser number of administrative country subdivisions or administrative territories than Gaborone
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { { ?a property:P1376 ?q . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q515 } UNION { ?a property:P1376 ?q . ?a rdf:type ontology:Q515 . ?q rdf:type ontology:Q13220204 } } GROUP BY ?a } . FILTER ( ?l < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Q3919 property:P1376 ?z . { { ?z rdf:type ontology:Q13220204 } UNION { ?z rdf:type ontology:Q15617994 } } } } }
Palu Szigetvár Szeghalom Laoag Serang Csorna Isabela City Nagykálló Marcali Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Dumaguete Bátonyterenye Palembang Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Frankfurt (Oder) Zalaszentgrót Potsdam Jayapura Makó Tübingen Jászberény Bélapátfalva Marawi Mar del Plata Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tiszafüred 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 Cincinnati Mezőkovácsháza Xuchang Binjai Surabaya Bonyhád Takahashi Cottbus Gyál Tandil Hajdúhadház Szolnok Kidapawan 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 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 Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Kunszentmiklós Samarinda Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Stanley Ürümqi Bandung Pannonhalma Zhengzhou Rupea Tabuk Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Třebíč Eger Yonezawa Iloilo City Yanagawa Kistelek Waren (Müritz) Kerma Maasin Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Wellington Masbate City Turquoise Mountain Kayes Freiberg Tarlac Banjarmasin Békés Washukanni Nakatsu Elek Sellye Mátészalka Hattusa Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Worms Cigánd Pekanbaru Tanjung Pinang Kutná Hora Digos Kisvárda Tandag Uda Tsuyama Mati Oral Ōmura Hódmezővásárhely Martonvásár Dabas Malolos Kisarazu 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 Darmstadt Kota Kinabalu Encs Oroszlány Pécsvárad Kalocsa Tolna 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 Kiskunhalas Ho Chi Minh City Malaybalay Csurgó Heves Minas Tirith Rosenheim Abony Pontianak HigashiMatsuyama Gárdony Palayan Sakura Cegléd Pápa Kunming Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran 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 Vojskovitsy Hefei Wollongong Suzuka Khost Imus Mannheim Orosháza Medan Wiesbaden Cagayan de Oro Jambi Szentendre Kediri Nordhausen Mataram Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Lanzhou Manado Szarvas Chongqing Szentgotthárd Linfen Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Roxas Tuguegarao Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Ajka Taiyuan Bangalore Most Fuchū Luoyang Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Tacloban San Fernando Wa Veszprém Tatabánya Baja Sivas Brand-Erbisdorf Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Aue Chemnitz Hagi Vyškov Karatsu Xining Pangkal Pinang Sokolov Edoras Kaposvár Bacolod Lenti Catbalogan Schmalkalden Ráckeve Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Brandenburg an der Havel Cotabato City Shaoxing Xàtiva Borongan Mezőkövesd Jihlava San Fernando Oroquieta Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
Dresden, Frankfurt and Brno are center of administration for lesser number of administrative country subdivisions or administrative territories than Gaborone
Dresden Frankfurt Brno
action less
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 designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Gaborone
relation capital of
type second-level administrative country subdivision
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?l ) WHERE { { ?a property:capital_of ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:city } UNION { ?a property:capital_of ?q . ?a rdf:type ontology:city . ?q rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?a } . FILTER ( ?l < ?s ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { resource:Gaborone property:capital_of ?z . { { ?z rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5838
P1376
Q13220204 Q15617994 Q515
USER
And also tell me about Kabul?
(c(Q515),P1376,c(Q13220204)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action count
action filter_multi_types
action find
entity Q5838
relation P1376
type Q13220204
type Q15617994
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q5838 property:P1376 ?h . { { ?h rdf:type ontology:Q13220204 } UNION { ?h rdf:type ontology:Q15617994 } } } } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?a ) WHERE { { ?d property:P1376 ?k . ?d rdf:type ontology:Q515 . ?k rdf:type ontology:Q13220204 } UNION { ?d property:P1376 ?k . ?k rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q515 } } GROUP BY ?d } }
Kabul
action less
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 designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Kabul
relation capital of
type second-level administrative country subdivision
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Kabul property:capital_of ?h . { { ?h rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?a ) WHERE { { ?d property:capital_of ?k . ?d rdf:type ontology:city . ?k rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?d property:capital_of ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:city } } GROUP BY ?d } }
[]
second-level administrative country subdivision designation for an administrative territorial entity city
Q1731 Q1794 Q14960
SYSTEM
Dresden, Frankfurt, Brno
Q15826 Q373542 Q780731 Q39738 Q10126 Q843001 Q1710 Q843006 Q843009 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q8131 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q4024 Q379030 Q1711 Q27860 Q240504 Q3806 Q281371 Q258884 Q592338 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q903177 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 Q43196 Q855032 Q404529 Q5954 Q11462 Q834567 Q851675 Q3214 Q842908 Q1000336 Q911530 Q181276 Q583137 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q1794 Q793405 Q665 Q375097 Q911558 Q59144 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q843018 Q14499 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q12245 Q16959 Q10389 Q650015 Q30340 Q225257 Q35925 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q270704 Q167109 Q734378 Q459787 Q585630 Q855529 Q4346 Q1107569 Q1025387 Q602042 Q237699 Q207406 Q517407 Q23661 Q191651 Q7856199 Q325164 Q14819 Q5285 Q14182 Q740810 Q1069007 Q861221 Q911667 Q842971 Q842976 Q181007 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q3852 Q846652 Q7786 Q10104 Q155975 Q1020939 Q674311 Q155674 Q863747 Q841125 Q314686 Q487439 Q385591 Q124375 Q933641 Q854940 Q2180 Q335427 Q9005 Q2337 Q633789 Q1330294 Q14960 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2973 Q137271 Q855060 Q843028 Q842996 Q679249 Q843021 Q680743 Q564234 Q3958 Q488990 Q3955 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q329775 Q1854 Q1856 Q855016 Q855011 Q308657 Q4007 Q480421 Q14168 Q823907 Q642031 Q55598 Q498011 Q214948 Q214945 Q182852 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 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 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q2119 Q390796 Q5972 Q1721 Q1645 Q7578 Q390798 Q11443 Q7033 Q14126 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q183584 Q15847 Q843014 Q11725 Q604516 Q73156 Q732300 Q789510 Q20073 Q2209 Q2200 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q206872 Q72778 Q1355 Q146363 Q208818 Q187136 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q187821 Q203344 Q107401 Q71159 Q3355306 Q57944 Q189761 Q189769 Q57948 Q2795 Q378225 Q954569 Q738275 Q69060 Q8179 Q727383 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q489147 Q755701 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3931 Q726993 Q42666 Q738013 Q894059 Q933638 Q183111 Q40584 Q1067897 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515),P1376,c(Q13220204)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action count
action filter_multi_types
action find
entity Q5838
relation P1376
type Q13220204
type Q15617994
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q5838 property:P1376 ?h . { { ?h rdf:type ontology:Q13220204 } UNION { ?h rdf:type ontology:Q15617994 } } } } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?a ) WHERE { { ?d property:P1376 ?k . ?d rdf:type ontology:Q515 . ?k rdf:type ontology:Q13220204 } UNION { ?d property:P1376 ?k . ?k rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q515 } } GROUP BY ?d } }
Palu Szigetvár Szeghalom Laoag Serang Csorna Isabela City Nagykálló Marcali Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Dumaguete Bátonyterenye Palembang Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Frankfurt (Oder) Zalaszentgrót Potsdam Jayapura Makó Tübingen Jászberény Bélapátfalva Marawi Mar del Plata Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tiszafüred 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 Cincinnati Mezőkovácsháza Xuchang Binjai Surabaya Bonyhád Takahashi Cottbus Gyál Tandil Hajdúhadház Szolnok Kidapawan 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 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 Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Kunszentmiklós Samarinda Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Stanley Ürümqi Bandung Pannonhalma Zhengzhou Rupea Tabuk Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Třebíč Eger Yonezawa Iloilo City Yanagawa Kistelek Waren (Müritz) Kerma Maasin Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Wellington Masbate City Turquoise Mountain Kayes Freiberg Tarlac Banjarmasin Békés Washukanni Nakatsu Elek Sellye Mátészalka Hattusa Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Worms Cigánd Pekanbaru Tanjung Pinang Kutná Hora Digos Kisvárda Tandag Uda Tsuyama Mati Oral Ōmura Hódmezővásárhely Martonvásár Dabas Malolos Kisarazu 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 Darmstadt Kota Kinabalu Encs Oroszlány Pécsvárad Kalocsa Tolna 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 Kiskunhalas Ho Chi Minh City Malaybalay Csurgó Heves Minas Tirith Rosenheim Abony Pontianak HigashiMatsuyama Gárdony Palayan Sakura Cegléd Pápa Kunming Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran 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 Vojskovitsy Hefei Wollongong Suzuka Khost Imus Mannheim Orosháza Medan Wiesbaden Cagayan de Oro Jambi Szentendre Kediri Nordhausen Mataram Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Lanzhou Manado Szarvas Chongqing Szentgotthárd Linfen Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Roxas Tuguegarao Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Ajka Taiyuan Bangalore Most Fuchū Luoyang Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Tacloban San Fernando Wa Veszprém Tatabánya Baja Sivas Brand-Erbisdorf Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Aue Chemnitz Hagi Vyškov Karatsu Xining Pangkal Pinang Sokolov Edoras Kaposvár Bacolod Lenti Catbalogan Schmalkalden Ráckeve Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Brandenburg an der Havel Cotabato City Shaoxing Xàtiva Borongan Mezőkövesd Jihlava San Fernando Oroquieta Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
Dresden Frankfurt Brno
action less
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 designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Kabul
relation capital of
type second-level administrative country subdivision
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Kabul property:capital_of ?h . { { ?h rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?a ) WHERE { { ?d property:capital_of ?k . ?d rdf:type ontology:city . ?k rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?d property:capital_of ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:city } } GROUP BY ?d } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1794
P123
Q2342494
USER
Which collectable was issued by that city ?
(c(Q2342494),P123,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P123
type Q2342494
[{'concept': 'Q2342494'}, 'P123', 'Q1794']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P123 resource:Q1794 }
Frankfurt
action filter_type
action find_reverse
entity Frankfurt
relation publisher
type collectable
[{'concept': 'collectable'}, 'publisher', 'Frankfurt']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:publisher resource:Frankfurt }
[]
collectable
Clarification for simple ques.
Q1794
SYSTEM
Did you mean Frankfurt ?
Q1731 Q1794 Q14960
(c(Q2342494),P123,Q1731) (c(Q2342494),P123,Q1794) (c(Q2342494),P123,Q14960)
[ANSWER]
[{'concept': 'Q2342494'}, 'P123', 'Q1731'] [{'concept': 'Q2342494'}, 'P123', 'Q1794'] [{'concept': 'Q2342494'}, 'P123', 'Q14960']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P123 resource:Q1794 }
Dresden Frankfurt Brno
Did you mean Frankfurt ?
Frankfurt
[{'concept': 'collectable'}, 'publisher', 'Dresden'] [{'concept': 'collectable'}, 'publisher', 'Frankfurt'] [{'concept': 'collectable'}, 'publisher', 'Brno']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:publisher resource:Frankfurt }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2342494),P123,Q1794)
[{'concept': 'Q2342494'}, 'P123', 'Q1794']
[{'concept': 'collectable'}, 'publisher', 'Frankfurt']
[]
Q1169724
SYSTEM
The Mars Project
Q1169724
(c(Q2342494),P123,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P123
type Q2342494
[ANSWER] was issued by that city
[{'concept': 'Q2342494'}, 'P123', 'Q1794']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2342494 . ?g property:P123 resource:Q1794 }
The Mars Project
The Mars Project was issued by that city
The Mars Project
action filter_type
action find_reverse
entity Frankfurt
relation publisher
type collectable
[{'concept': 'collectable'}, 'publisher', 'Frankfurt']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:collectable . ?g property:publisher resource:Frankfurt }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1169724 Q57384 Q567137
P50
Q502895
USER
Is that collectable written by Wernher von Braun and Annika Peimann ?
(Q1169724,P50,Q57384) (Q1169724,P50,Q567137)
action is_in
entity Q1169724
action intersection
action find_reverse
entity Q57384
relation P50
action find_reverse
entity Q567137
relation P50
['Q1169724', 'P50', 'Q57384'] ['Q1169724', 'P50', 'Q567137']
ASK WHERE { resource:Q1169724 property:P50 resource:Q57384 . resource:Q1169724 property:P50 resource:Q567137 }
The Mars Project Wernher von Braun Annika Peimann
action is_in
entity The Mars Project
action intersection
action find_reverse
entity Wernher von Braun
relation author
action find_reverse
entity Annika Peimann
relation author
['The Mars Project', 'author', 'Wernher von Braun'] ['The Mars Project', 'author', 'Annika Peimann']
ASK WHERE { resource:The_Mars_Project property:author resource:Wernher_von_Braun . resource:The_Mars_Project property:author resource:Annika_Peimann }
[]
common name
SYSTEM
YES and NO respectively
(Q1169724,P50,Q57384) (Q1169724,P50,Q567137)
action is_in
entity Q1169724
action intersection
action find_reverse
entity Q57384
relation P50
action find_reverse
entity Q567137
relation P50
[ANSWER]
['Q1169724', 'P50', 'Q57384'] ['Q1169724', 'P50', 'Q567137']
ASK WHERE { resource:Q1169724 property:P50 resource:Q57384 . resource:Q1169724 property:P50 resource:Q567137 }
YES and NO respectively
action is_in
entity The Mars Project
action intersection
action find_reverse
entity Wernher von Braun
relation author
action find_reverse
entity Annika Peimann
relation author
['The Mars Project', 'author', 'Wernher von Braun'] ['The Mars Project', 'author', 'Annika Peimann']
ASK WHERE { resource:The_Mars_Project property:author resource:Wernher_von_Braun . resource:The_Mars_Project property:author resource:Annika_Peimann }
[]