Simple Question (Direct)
Simple Question
Q556102
P20
Q515
USER
Which city is the place of death of Johann Eleazar Zeissig ?
(Q556102,P20,c(Q515))
action filter_type
action find
entity Q556102
relation P20
type Q515
['Q556102', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q556102 property:P20 ?i . ?i rdf:type ontology:Q515 }
Johann Eleazar Zeissig
action filter_type
action find
entity Johann Eleazar Zeissig
relation place of death
type city
['Johann Eleazar Zeissig', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Eleazar_Zeissig property:place_of_death ?i . ?i rdf:type ontology:city }
[]
city
Q1731
SYSTEM
Dresden
Q1731
(Q556102,P20,c(Q515))
action filter_type
action find
entity Q556102
relation P20
type Q515
[ANSWER] is the place of death of Johann Eleazar Zeissig
['Q556102', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q556102 property:P20 ?i . ?i rdf:type ontology:Q515 }
Dresden
Dresden is the place of death of Johann Eleazar Zeissig
Dresden
action filter_type
action find
entity Johann Eleazar Zeissig
relation place of death
type city
['Johann Eleazar Zeissig', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Eleazar_Zeissig property:place_of_death ?i . ?i rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q556102
P802
Q502895
USER
Who was the teacher of that one ?
(Q1731,P802,c(Q502895))
action filter_type
action find
entity Q556102
relation P802
type Q502895
['Q1731', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q556102 property:P802 ?a . ?a rdf:type ontology:Q502895 }
Johann Eleazar Zeissig
action filter_type
action find
entity Johann Eleazar Zeissig
relation student
type common name
['Dresden', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Eleazar_Zeissig property:student ?a . ?a rdf:type ontology:common_name }
[]
common name
Q215718
SYSTEM
Christian Leberecht Vogel
Q215718
(Q1731,P802,c(Q502895))
action filter_type
action find
entity Q556102
relation P802
type Q502895
The teacher of that one was the [ANSWER]
['Q1731', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q556102 property:P802 ?a . ?a rdf:type ontology:Q502895 }
Christian Leberecht Vogel
The teacher of that one was the Christian Leberecht Vogel
Christian Leberecht Vogel
action filter_type
action find
entity Johann Eleazar Zeissig
relation student
type common name
['Dresden', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Eleazar_Zeissig property:student ?a . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q183 Q556102
P27 P1066
Q502895
USER
Which people are pupils of Johann Eleazar Zeissig and are a citizen of Germany ?
AND((c(Q502895),P1066,Q556102), (c(Q502895),P27,Q183))
action filter_type
action intersection
action find_reverse
entity Q556102
relation P1066
action find_reverse
entity Q183
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1066', 'Q556102'], [{'concept': 'Q502895'}, 'P27', 'Q183']]}
SELECT DISTINCT ?y WHERE { ?y property:P1066 resource:Q556102 . ?y property:P27 resource:Q183 . ?y rdf:type ontology:Q502895 }
Germany Johann Eleazar Zeissig
action filter_type
action intersection
action find_reverse
entity Johann Eleazar Zeissig
relation student of
action find_reverse
entity Germany
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'student of', 'Johann Eleazar Zeissig'], [{'concept': 'common name'}, 'country of citizenship', 'Germany']]}
SELECT DISTINCT ?y WHERE { ?y property:student_of resource:Johann_Eleazar_Zeissig . ?y property:country_of_citizenship resource:Germany . ?y rdf:type ontology:common_name }
[]
common name
Q215718
SYSTEM
Christian Leberecht Vogel
Q215718
AND((c(Q502895),P1066,Q556102), (c(Q502895),P27,Q183))
action filter_type
action intersection
action find_reverse
entity Q556102
relation P1066
action find_reverse
entity Q183
relation P27
type Q502895
[ANSWER] is pupils of Johann Eleazar Zeissig and is a citizen of Germany
{'AND': [[{'concept': 'Q502895'}, 'P1066', 'Q556102'], [{'concept': 'Q502895'}, 'P27', 'Q183']]}
SELECT DISTINCT ?y WHERE { ?y property:P1066 resource:Q556102 . ?y property:P27 resource:Q183 . ?y rdf:type ontology:Q502895 }
Christian Leberecht Vogel
Christian Leberecht Vogel is pupils of Johann Eleazar Zeissig and is a citizen of Germany
Christian Leberecht Vogel
action filter_type
action intersection
action find_reverse
entity Johann Eleazar Zeissig
relation student of
action find_reverse
entity Germany
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'student of', 'Johann Eleazar Zeissig'], [{'concept': 'common name'}, 'country of citizenship', 'Germany']]}
SELECT DISTINCT ?y WHERE { ?y property:student_of resource:Johann_Eleazar_Zeissig . ?y property:country_of_citizenship resource:Germany . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q127318
P88
Q502895 Q3305213 Q11460
USER
How many people commissioned greater number of paintings or clothings than George III of Great Britain ?
(c(Q3305213)|c(Q11460),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3305213
action find_reverse_tuple_counts
relation P88
type Q502895
type Q11460
action count
action filter_multi_types
action find_reverse
entity Q127318
relation P88
type Q3305213
type Q11460
[[{'concept': 'Q3305213'}, {'concept': 'Q11460'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?s WHERE { { ?d property:P88 ?s . ?s rdf:type ontology:Q502895 . ?d rdf:type ontology:Q3305213 } UNION { ?s rdf:type ontology:Q502895 . ?d rdf:type ontology:Q11460 . ?d property:P88 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:P88 resource:Q127318 . { VALUES ( ?u ) { ( ontology:Q3305213 ) ( ontology:Q11460 ) } . ?h rdf:type ?u } } } . FILTER ( ?q > ?w ) }
George III of Great Britain
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type painting
action find_reverse_tuple_counts
relation commissioned by
type common name
type clothing
action count
action filter_multi_types
action find_reverse
entity George III of Great Britain
relation commissioned by
type painting
type clothing
[[{'concept': 'painting'}, {'concept': 'clothing'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?s WHERE { { ?d property:commissioned_by ?s . ?s rdf:type ontology:common_name . ?d rdf:type ontology:painting } UNION { ?s rdf:type ontology:common_name . ?d rdf:type ontology:clothing . ?d property:commissioned_by ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:commissioned_by resource:George_III_of_Great_Britain . { VALUES ( ?u ) { ( ontology:painting ) ( ontology:clothing ) } . ?h rdf:type ?u } } } . FILTER ( ?q > ?w ) }
[]
common name painting clothing
SYSTEM
22
Q8019380 Q169305 Q788163 Q3765384 Q4725780 Q236853 Q506933 Q257286 Q5379610 Q1399 Q691402 Q5928444 Q250732 Q23691658 Q289104 Q395635 Q7343203 Q23647555 Q80516 Q23688963 Q969770 Q3742116
(c(Q3305213)|c(Q11460),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q3305213
action find_reverse_tuple_counts
relation P88
type Q502895
type Q11460
action count
action filter_multi_types
action find_reverse
entity Q127318
relation P88
type Q3305213
type Q11460
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q11460'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?s WHERE { { ?d property:P88 ?s . ?s rdf:type ontology:Q502895 . ?d rdf:type ontology:Q3305213 } UNION { ?s rdf:type ontology:Q502895 . ?d rdf:type ontology:Q11460 . ?d property:P88 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:P88 resource:Q127318 . { VALUES ( ?u ) { ( ontology:Q3305213 ) ( ontology:Q11460 ) } . ?h rdf:type ?u } } } . FILTER ( ?q > ?w ) }
William Thompson Walters Urban IV Mary Curzon, Baroness Curzon of Kedleston Gregorio Correr Alice Claypoole Gwynne Ludovico Sforza Halil Şerif Paşa Meagan Good Enrico degli Scrovegni Niccolò Machiavelli Philip IV of Spain Robert John Thornton John Linnell Elizabeth Ilive Piero Soderini Agostino Chigi Robert Cromek Thomas Butts Julius II Joseph Thomas Ludovico III Gonzaga, Marquis of Mantua Felice Brancacci
22
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type painting
action find_reverse_tuple_counts
relation commissioned by
type common name
type clothing
action count
action filter_multi_types
action find_reverse
entity George III of Great Britain
relation commissioned by
type painting
type clothing
[[{'concept': 'painting'}, {'concept': 'clothing'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?s WHERE { { ?d property:commissioned_by ?s . ?s rdf:type ontology:common_name . ?d rdf:type ontology:painting } UNION { ?s rdf:type ontology:common_name . ?d rdf:type ontology:clothing . ?d property:commissioned_by ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h property:commissioned_by resource:George_III_of_Great_Britain . { VALUES ( ?u ) { ( ontology:painting ) ( ontology:clothing ) } . ?h rdf:type ?u } } } . FILTER ( ?q > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q8179
P1376
Q515 Q1048835 Q515
USER
Which cities are center of administration for around the same number of cities and political territories as Pangkal Pinang ?
(c(Q515),P1376,c(Q515)|c(Q1048835))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q8179
relation P1376
type Q515
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?o WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q1048835 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Q8179 property:P1376 ?r . { { ?r rdf:type ontology:Q515 } UNION { ?r rdf:type ontology:Q1048835 } } } } . FILTER ( ?p = ?j ) }
Pangkal Pinang
action approx
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Pangkal Pinang
relation capital of
type city
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?o WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:city ) ( ontology:political_territorial_entity ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Pangkal_Pinang property:capital_of ?r . { { ?r rdf:type ontology:city } UNION { ?r rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?p = ?j ) }
[]
city political territorial entity city
Q1899 Q1731 Q14960
SYSTEM
Kyiv, Dresden, Brno
Q15826 Q39738 Q10126 Q1710 Q14525 Q3042 Q3974 Q873377 Q8131 Q4024 Q1711 Q27860 Q3806 Q592338 Q52607 Q5779 Q1696 Q41474 Q1070920 Q174096 Q111739 Q18970 Q432169 Q147738 Q3926 Q11462 Q3214 Q1000336 Q583137 Q1019949 Q235004 Q725168 Q1899 Q1410 Q12062 Q2966 Q1467 Q14499 Q12245 Q1844 Q10389 Q35925 Q15379 Q1723 Q459787 Q1025387 Q191651 Q14819 Q5285 Q14182 Q7568 Q1731 Q1636 Q7786 Q10104 Q1020939 Q155674 Q314686 Q2180 Q14960 Q874270 Q2978 Q14821 Q2079 Q8156 Q1856 Q4007 Q14168 Q55598 Q1826 Q542154 Q7253 Q2936 Q2749 Q63145 Q2119 Q5972 Q1645 Q7578 Q14126 Q15847 Q2209 Q2200 Q16506 Q14155 Q14409 Q40626 Q55740 Q57944 Q2795 Q8179 Q5217 Q1020709 Q2152435 Q3935 Q3750 Q894059 Q183111 Q40584 Q1067897 Q11506 Q107624 Q8042 Q50179 Q104125 Q2999
(c(Q515),P1376,c(Q515)|c(Q1048835))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q8179
relation P1376
type Q515
type Q1048835
[ANSWERS] are center of administration for around the same number of cities and political territories as Pangkal Pinang
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?o WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q1048835 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Q8179 property:P1376 ?r . { { ?r rdf:type ontology:Q515 } UNION { ?r rdf:type ontology:Q1048835 } } } } . FILTER ( ?p = ?j ) }
Palu Laoag Serang Isabela City Gorontalo Offenbach am Main Landshut Dumaguete Palembang Frankfurt (Oder) Potsdam Jayapura Tübingen Marawi Mar del Plata Banda Aceh Legazpi Kingstown Mamuju Sorsogon City Puerto Princesa Ambon Dipolog Saint Helier Pretoria Surabaya Cottbus Tandil Kidapawan Surigao City Vigan Tagum Kyiv Gibraltar Torgau Heidelberg Cebu City Samarinda Stanley Vaduz Bandung Tabuk Kendari Batangas City Iloilo City Maasin Masbate City Freiberg Tarlac Banjarmasin Yogyakarta Dresden Antipolo Pekanbaru Tanjung Pinang Digos Tandag Mati Malolos Brno Pagadian Regensburg Coburg Leipzig Bandar Lampung Malaybalay Rosenheim Pontianak Palayan Tagbilaran Koronadal Padang Oldenburg Augsburg Imus Mannheim Medan Cagayan de Oro Jambi Mataram Manado Roxas Tuguegarao České Budějovice Kupang Palangkaraya Tacloban San Fernando Annaberg-Buchholz Chemnitz Pangkal Pinang Bacolod Catbalogan Miramar Windhoek Gera Borongan Jihlava San Fernando Oroquieta Denpasar Calapan Bengkulu Ilagan Lucena Würzburg
Kyiv, Dresden and Brno are center of administration for around the same number of cities and political territories as Pangkal Pinang
Kyiv Dresden Brno
action approx
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Pangkal Pinang
relation capital of
type city
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?o WHERE { ?v rdf:type ?y . VALUES ( ?y ) { ( ontology:city ) ( ontology:political_territorial_entity ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Pangkal_Pinang property:capital_of ?r . { { ?r rdf:type ontology:city } UNION { ?r rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?p = ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q547479
P1376
Q515 Q1048835 Q515
USER
And how about Dunakeszi?
(c(Q515),P1376,c(Q515)|c(Q1048835))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q547479
relation P1376
type Q515
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?h WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Q547479 property:P1376 ?o . { { ?o rdf:type ontology:Q515 } UNION { ?o rdf:type ontology:Q1048835 } } } } . FILTER ( ?p = ?x ) }
Dunakeszi
action approx
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Dunakeszi
relation capital of
type city
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?h WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:city ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Dunakeszi property:capital_of ?o . { { ?o rdf:type ontology:city } UNION { ?o rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?p = ?x ) }
[]
city political territorial entity city
Q1486 Q1773 Q1794
SYSTEM
Buenos Aires, Riga, Frankfurt
Q373542 Q780731 Q3572 Q843001 Q843006 Q843009 Q861296 Q637647 Q240026 Q19689 Q853746 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q379030 Q496667 Q240504 Q281371 Q258884 Q3624 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q932806 Q377834 Q295367 Q653389 Q851097 Q861292 Q57953 Q917888 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q80989 Q14424 Q304803 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q834567 Q851675 Q842908 Q23482 Q505208 Q911530 Q5838 Q181276 Q3692 Q847546 Q330409 Q847543 Q854956 Q379160 Q132997 Q478038 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q793405 Q665 Q375097 Q911558 Q59144 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1461 Q843018 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q117676 Q16959 Q650015 Q30340 Q23430 Q225257 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q288413 Q1519 Q8684 Q270704 Q3838 Q167109 Q3104 Q734378 Q585630 Q855529 Q7248 Q4346 Q1107569 Q6602 Q602042 Q237699 Q207406 Q517407 Q7856199 Q3904 Q325164 Q305640 Q740810 Q1069007 Q861221 Q911667 Q6807568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q3861 Q43433 Q3852 Q846652 Q3859 Q155975 Q19660 Q674311 Q3915 Q863747 Q841125 Q487439 Q385591 Q1953 Q124375 Q933641 Q854940 Q714628 Q335427 Q177149 Q9005 Q2337 Q633789 Q1330294 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q911628 Q632146 Q52564 Q4905 Q207876 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q680743 Q564234 Q488990 Q3955 Q668318 Q2773 Q6829 Q260522 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q1854 Q855016 Q3787 Q855011 Q308657 Q480421 Q823907 Q7070 Q3826 Q642031 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q2526233 Q946769 Q846351 Q739304 Q789233 Q530634 Q4827 Q877227 Q5753 Q429409 Q193719 Q170454 Q211243 Q841603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q11194 Q386682 Q390796 Q271917 Q1720 Q1721 Q83247 Q390798 Q11443 Q7033 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q183584 Q2907 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q20073 Q1863 Q1865 Q18342086 Q430207 Q756273 Q188247 Q206872 Q72778 Q1355 Q146363 Q208818 Q187136 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q107401 Q71159 Q3355306 Q189761 Q189769 Q1761 Q57948 Q378225 Q954569 Q2887 Q738275 Q69060 Q727383 Q2061 Q2069869 Q184998 Q854965 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q843043 Q850676 Q36063 Q7003 Q3931 Q726993 Q3919 Q3751 Q3616 Q42666 Q738013 Q933638 Q25475 Q613813 Q375862 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q911642 Q187284 Q158245 Q284480 Q632080 Q207309 Q187812 Q16666
(c(Q515),P1376,c(Q515)|c(Q1048835))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q547479
relation P1376
type Q515
type Q1048835
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?h WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Q547479 property:P1376 ?o . { { ?o rdf:type ontology:Q515 } UNION { ?o rdf:type ontology:Q1048835 } } } } . FILTER ( ?p = ?x ) }
Szigetvár Szeghalom Tunis Csorna Nagykálló Marcali Nōgata Pásztó Jászapáti Tirana Bátonyterenye Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Zalaszentgrót Muroran Makó Jászberény Bélapátfalva Addis Ababa 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 Polgárdi Szentes Nagyatád Nobeoka Iiyama Hitoyoshi Schwarzenberg Vinaròs Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Gönc Tata Celldömölk Záhony Toyooka Pétervására Bhopal Nagykanizsa Mezőcsát Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Bonyhád Takahashi Gyál Marseille Ouarzazate Hajdúhadház Kabul Szolnok Riyadh Saiki Ústí nad Orlicí Katsuyama Ibrány Kunszentmárton Florianópolis Kiskunfélegyháza Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Alcoi Cape Coast Polgár Letenye Püspökladány Frankfurt Berettyóújfalu Lugdunum Tiszaújváros Putnok Zhanjiang Kiskunmajsa Saga Békéscsaba Durjaya Tsu Buenos Aires Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Manila Kunszentmiklós Tamási Keszthely Olbia Akō Szentlőrinc Adony Viseu Ürümqi Pannonhalma Zhengzhou Ulaanbaatar Rupea Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Tapolca Abu Dhabi Seoul Třebíč Kinshasa Eger Koblenz Yonezawa Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Turquoise Mountain Mbabane Kayes Abashiri Békés Washukanni Nakatsu Elek Emmen Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Doha Chandigarh Worms Cigánd Kigali Kutná Hora Bucharest Kisvárda Antananarivo Uda Tsuyama Oral Ōmura Yerevan Hódmezővásárhely Martonvásár Dabas Rumoi Kisarazu Obihiro Brussels Smolensk Dombóvár Jiankang Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Balatonfüred Annaka Kostanay Weimar Sárospatak Braunschweig Speyer Bácsalmás Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Ho Chi Minh City Csurgó Abuja Heves Minas Tirith Abony HigashiMatsuyama Eisenach Muscat Gárdony Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Caracas Morioka Lucknow Patna Ungaran Hirado Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Pilisvörösvár Vyritsa Ogi Samarkand Szob Cheb Agartala Yinchuan Tiszakécske Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Sarajevo Khost Orosháza Kushiro Mainz Wiesbaden Braga Szentendre Kediri Nordhausen Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Lanzhou Sucre Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Kuala Lumpur Oyo-Ile Komló Karcag Sarkad Ajka Taiyuan Bangalore Most Fuchū Luoyang Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Sivas Brand-Erbisdorf Fukuchiyama Szekszárd Salgótarján Dublin Aue Hagi Vyškov Santiago Karatsu Xining Sokolov Yellowknife Edoras Kaposvár Lenti Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Sárvár Blansko Vecsés Dijon Brandenburg an der Havel Cotabato City Gaborone Praia Tehran Shaoxing Xàtiva Mezőkövesd Batumi Kőszeg Nyíradony 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 Füzesabony Hurghada Písek Bóly Tét Tokushima Dunaújváros Nanjing
Buenos Aires Riga Frankfurt
action approx
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Dunakeszi
relation capital of
type city
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) ?h WHERE { ?b rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:city ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Dunakeszi property:capital_of ?o . { { ?o rdf:type ontology:city } UNION { ?o rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?p = ?x ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1486 Q1773 Q1794
P6
Q502895
USER
Which people have those cities as their heads of government ?
(Q1486,P6,c(Q502895)) (Q1773,P6,c(Q502895)) (Q1794,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q1486', 'P6', {'concept': 'Q502895'}] ['Q1773', 'P6', {'concept': 'Q502895'}] ['Q1794', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?g property:P6 ?j . VALUES ( ?g ) { ( resource:Q373542 ) ( resource:Q780731 ) ( resource:Q3572 ) } . ?j rdf:type ontology:Q502895 }
Buenos Aires Riga Frankfurt
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Buenos Aires', 'head of government', {'concept': 'common name'}] ['Riga', 'head of government', {'concept': 'common name'}] ['Frankfurt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?g property:head_of_government ?j . VALUES ( ?g ) { ( resource:Szigetvár ) ( resource:Szeghalom ) ( resource:Tunis ) } . ?j rdf:type ontology:common_name }
[]
common name
Q446890 Q96981 Q61249
SYSTEM
Walter Wallmann, Volker Hauff, Petra Roth
Q2843714 Q1287239 Q63882 Q100507 Q2573280 Q96981 Q2576973 Q99842 Q1764115 Q84856 Q113325 Q446890 Q2545117 Q96506 Q1440251 Q1445962 Q117166 Q2560878 Q61249 Q102860 Q2592018
(Q1486,P6,c(Q502895)) (Q1773,P6,c(Q502895)) (Q1794,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
[ANSWERS] have those cities as their heads of government
['Q1486', 'P6', {'concept': 'Q502895'}] ['Q1773', 'P6', {'concept': 'Q502895'}] ['Q1794', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?g property:P6 ?j . VALUES ( ?g ) { ( resource:Q373542 ) ( resource:Q780731 ) ( resource:Q3572 ) } . ?j rdf:type ontology:Q502895 }
Horacio Rodríguez Larreta Nils Ušakovs Johann von Miquel Friedrich Krebs Wilhelm Hollbach Volker Hauff Willi Brundert Georg Voigt Kurt Blaum Ludwig Landmann Andreas von Schoeler Walter Wallmann Walter Kolb Peter Feldmann Walter Möller Franz Adickes Rudi Arndt Werner Bockelmann Petra Roth Daniel Heinrich Mumm von Schwarzenstein Wolfram Brück
Walter Wallmann, Volker Hauff and Petra Roth have those cities as their heads of government
Walter Wallmann Volker Hauff Petra Roth
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Buenos Aires', 'head of government', {'concept': 'common name'}] ['Riga', 'head of government', {'concept': 'common name'}] ['Frankfurt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?g property:head_of_government ?j . VALUES ( ?g ) { ( resource:Szigetvár ) ( resource:Szeghalom ) ( resource:Tunis ) } . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q446890 Q96981 Q61249
P6
Q515
USER
Which cities have a government lead by those people ?
(c(Q515),P6,Q446890) (c(Q515),P6,Q96981) (c(Q515),P6,Q61249)
action filter_type
action find_reverse
entity prev_answer
relation P6
type Q515
[{'concept': 'Q515'}, 'P6', 'Q446890'] [{'concept': 'Q515'}, 'P6', 'Q96981'] [{'concept': 'Q515'}, 'P6', 'Q61249']
SELECT DISTINCT ?w WHERE { ?w property:P6 ?l . VALUES ( ?l ) { ( resource:Q2843714 ) ( resource:Q1287239 ) ( resource:Q63882 ) } . ?w rdf:type ontology:Q515 }
Walter Wallmann Volker Hauff Petra Roth
action filter_type
action find_reverse
entity prev_answer
relation head of government
type city
[{'concept': 'city'}, 'head of government', 'Walter Wallmann'] [{'concept': 'city'}, 'head of government', 'Volker Hauff'] [{'concept': 'city'}, 'head of government', 'Petra Roth']
SELECT DISTINCT ?w WHERE { ?w property:head_of_government ?l . VALUES ( ?l ) { ( resource:Horacio_Rodríguez_Larreta ) ( resource:Nils_Ušakovs ) ( resource:Johann_von_Miquel ) } . ?w rdf:type ontology:city }
[]
city
Q1794
SYSTEM
Frankfurt
Q1794
(c(Q515),P6,Q446890) (c(Q515),P6,Q96981) (c(Q515),P6,Q61249)
action filter_type
action find_reverse
entity prev_answer
relation P6
type Q515
[ANSWER] have a government lead by those people
[{'concept': 'Q515'}, 'P6', 'Q446890'] [{'concept': 'Q515'}, 'P6', 'Q96981'] [{'concept': 'Q515'}, 'P6', 'Q61249']
SELECT DISTINCT ?w WHERE { ?w property:P6 ?l . VALUES ( ?l ) { ( resource:Q2843714 ) ( resource:Q1287239 ) ( resource:Q63882 ) } . ?w rdf:type ontology:Q515 }
Frankfurt
Frankfurt have a government lead by those people
Frankfurt
action filter_type
action find_reverse
entity prev_answer
relation head of government
type city
[{'concept': 'city'}, 'head of government', 'Walter Wallmann'] [{'concept': 'city'}, 'head of government', 'Volker Hauff'] [{'concept': 'city'}, 'head of government', 'Petra Roth']
SELECT DISTINCT ?w WHERE { ?w property:head_of_government ?l . VALUES ( ?l ) { ( resource:Horacio_Rodríguez_Larreta ) ( resource:Nils_Ušakovs ) ( resource:Johann_von_Miquel ) } . ?w rdf:type ontology:city }
[]