Simple Question (Direct)
Simple Question
Q266339
P119
Q486972
USER
Where was Józef Bem buried ?
(Q266339,P119,c(Q486972))
action filter_type
action find
entity Q266339
relation P119
type Q486972
['Q266339', 'P119', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q266339 property:P119 ?n . ?n rdf:type ontology:Q486972 }
Józef Bem
action filter_type
action find
entity Józef Bem
relation place of burial
type human settlement
['Józef Bem', 'place of burial', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Józef_Bem property:place_of_burial ?n . ?n rdf:type ontology:human_settlement }
[]
human settlement
Q106281
SYSTEM
Tarnów
Q106281
(Q266339,P119,c(Q486972))
action filter_type
action find
entity Q266339
relation P119
type Q486972
Józef Bem was buried in [ANSWER]
['Q266339', 'P119', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q266339 property:P119 ?n . ?n rdf:type ontology:Q486972 }
Tarnów
Józef Bem was buried in Tarnów
Tarnów
action filter_type
action find
entity Józef Bem
relation place of burial
type human settlement
['Józef Bem', 'place of burial', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Józef_Bem property:place_of_burial ?n . ?n rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q266339
P166
Q618779
USER
Which award was received by that person ?
(Q106281,P166,c(Q618779))
action filter_type
action find
entity Q266339
relation P166
type Q618779
['Q106281', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q618779 . resource:Q266339 property:P166 ?b }
Józef Bem
action filter_type
action find
entity Józef Bem
relation award received
type award
['Tarnów', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:award . resource:Józef_Bem property:award_received ?b }
[]
award
Q10855271
SYSTEM
Knight of the Legion of Honour
Q10855271
(Q106281,P166,c(Q618779))
action filter_type
action find
entity Q266339
relation P166
type Q618779
Was [ANSWER] was received by that person
['Q106281', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q618779 . resource:Q266339 property:P166 ?b }
Knight of the Legion of Honour
Was Knight of the Legion of Honour was received by that person
Knight of the Legion of Honour
action filter_type
action find
entity Józef Bem
relation award received
type award
['Tarnów', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:award . resource:Józef_Bem property:award_received ?b }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q208573 Q106281
P19
Q502895
USER
Which people were born at Tarnów or Arta ?
OR((c(Q502895),P19,Q106281), (c(Q502895),P19,Q208573))
action filter_type
action union
action find_reverse
entity Q106281
relation P19
action find_reverse
entity Q208573
relation P19
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q106281'], [{'concept': 'Q502895'}, 'P19', 'Q208573']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { VALUES ( ?u ) { ( resource:Q106281 ) ( resource:Q208573 ) } . ?c property:P19 ?u } }
Arta Tarnów
action filter_type
action union
action find_reverse
entity Tarnów
relation place of birth
action find_reverse
entity Arta
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Tarnów'], [{'concept': 'common name'}, 'place of birth', 'Arta']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { VALUES ( ?u ) { ( resource:Tarnów ) ( resource:Arta ) } . ?c property:place_of_birth ?u } }
[]
common name
Q18221328 Q3193940 Q553327 Q11729906 Q11686136 Q62618 Q15781773 Q9376592 Q4113945 Q71110
SYSTEM
Some of them are Marcin Dzieński, Katarzyna Mróz, Mirosław Kubisztal, Józef Barbachen, Andrzej Zielinski, Anny Ondra, Adolphe Basler, Wojciech Klich, Marian Wodziński, Wilhelm Wolff
Q445138 Q2003723 Q76890 Q3048839 Q21282019 Q6432300 Q1377079 Q11765468 Q7282470 Q11727549 Q68126 Q9139604 Q4113945 Q11724891 Q7944568 Q15781773 Q6150341 Q1529904 Q4078679 Q20830327 Q17362254 Q11719062 Q16236957 Q18563279 Q11767671 Q214147 Q11725051 Q5473965 Q3138918 Q11765498 Q1682301 Q6150897 Q960983 Q24079 Q9324954 Q5443983 Q20830509 Q1094286 Q266339 Q11763286 Q2616821 Q4815175 Q11731372 Q9354806 Q94534 Q25768165 Q447668 Q18221328 Q11720976 Q362678 Q13615157 Q9264083 Q9288869 Q9389686 Q19690572 Q11684866 Q9342025 Q1223718 Q20897801 Q11767587 Q11731696 Q20823420 Q18642561 Q2331520 Q11835195 Q9312694 Q18012110 Q11814203 Q11779704 Q17426459 Q9342150 Q20830488 Q89043 Q698929 Q62618 Q17102404 Q9282150 Q8288753 Q19856525 Q1067346 Q9253538 Q11716916 Q9376592 Q11814050 Q11817815 Q12886027 Q3846091 Q11731129 Q2015092 Q9394671 Q14422971 Q9257007 Q3559896 Q1254298 Q21481598 Q24429251 Q9341971 Q24430336 Q4685450 Q10317434 Q1523240 Q1064099 Q11731438 Q14917883 Q553327 Q11772336 Q25703694 Q11686491 Q9383490 Q11739845 Q2115252 Q6838616 Q892098 Q20830463 Q11724549 Q5918084 Q9387982 Q9251107 Q9382117 Q24577916 Q327692 Q4237850 Q19691574 Q16334793 Q3500749 Q11729251 Q1930555 Q434797 Q9359817 Q2607295 Q953507 Q16597102 Q12119325 Q9343606 Q17386152 Q11692962 Q3294152 Q138302 Q20823564 Q9147834 Q6440232 Q11838192 Q9354518 Q4668908 Q18425701 Q9312258 Q16283943 Q4469601 Q1507434 Q24006676 Q10827785 Q3193940 Q20830544 Q4780707 Q3530986 Q977914 Q931852 Q6758814 Q16332762 Q17362273 Q9258991 Q445101 Q11719446 Q11686136 Q11729906 Q9311147 Q506615 Q221138 Q71110 Q9162281 Q649552 Q450393 Q15450236 Q9342854 Q565279 Q9334765 Q20995416 Q11781818 Q698278 Q3816407 Q2081290 Q11724805 Q350978 Q970324
OR((c(Q502895),P19,Q106281), (c(Q502895),P19,Q208573))
action filter_type
action union
action find_reverse
entity Q106281
relation P19
action find_reverse
entity Q208573
relation P19
type Q502895
[ANSWERS] were born at Tarnów or Arta
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q106281'], [{'concept': 'Q502895'}, 'P19', 'Q208573']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { VALUES ( ?u ) { ( resource:Q106281 ) ( resource:Q208573 ) } . ?c property:P19 ?u } }
Joshua Jortner Yiannis Moralis Ignace Gelb Edyta Ropek Anna Czech Maria Vetulani de Nisau Wilhelm Sasnal Maciej Kubisztal Rafał of Tarnów Joanna Waga Felicia Langer Adam Gorczyński Marian Wodziński Jerzy Koziołkowski Maciej Zembaty Adolphe Basler Jan of Tarnów Constantin Carapanos Stefan Bartik Stanisław Kwaśnik Zygmunt Marynowski Jan Stadnicki Antonis Papasavvas Felix Rapf Marcin Kwaśny Allan Gray Jerzy Mazgaj Fotis Georgiou Ishak Efendi Maciej Marek Sysło Jan Tyssowski Tadeusz Klimecki Stefan Filipkiewicz Jan Maciejko Ryszard Skutnik Ferdynand Zarzycki Tadeusz Młynek Mateusz Klich Józef Bem Lucjan Grabowski Eustachy Stanisław Sanguszko Wanda Zabłocka Józef Smoczek Tadeusz Rutowski Abraham Salz Michal Derus Monika Bejnar Marcin Dzieński Jarosław Popiela Jozef Kapustka Judith Kestenberg Fryderyk Sadowski Henryk Worcell Zdzisław Jakubowski Antoni Rosner Albert Gorzkowski Stanisław Gębala Alexandros Karapanos Wilhelm Wichurski Marcin Hycnar Józef Ziemian Max Fenichel Alfred Denner Stanisława Starostka Roman Albinowski Roman Zahaczewski Urszula Oettingen Paweł Kumięga Mieczysław Dobrzański Władysław Brzozowski Stanisław Jodłowski Andrzej Kuliczkowski Gustav von Piotrowski Rudolf Jettmar Anny Ondra Nikos Verlekis Grzegorz Wajda Filip Kliszczyk Giorgos Papageorgiou Jacek Dukaj Emil Prochaska Jan Amor Iunior Tarnowski Wojciech Klich Paweł Gadziała Piotr Metz Charalambos Gouvas Zenon Klemensiewicz Józef Pecka Tomasz Wróbel Łukasz Maciejewski Marcin Szaforz Ewelina Tobiasz Vaggelis Kaounos Philipp Münz Jakub Kuzdra Andrzej Mróz Stanisław Gonet Aleksander Tyka Adrian Woźniczka Leopold Haar Lazar Münz Charles Denner Józef Szaflarski Michał Brandstätter Mirosław Kubisztal Małgorzata Müldner-Nieckowska Józef Winkowski Antoni Żukowski Yola Czaderska-Hayek Klaudia Buczek Edward Kozłowski Mickey Duff Franciszek Latinik Antoni Gryzina-Lasek Jerzy Durał Janusz Kołodziej Zbigniew Józefowicz Edward Oratowski Władysław Mróz Andrzej Battaglia Edward Czesak Andrzej Krasicki Aleksander Wareński Wojciech Janus Sotiris Balafas Juliusz Albinowski Michał Kubisztal Józef Cyrankiewicz Tomasz Zeliszewski Marcin Nowak Salo Wittmayer Baron Roman Szydłowski Ludwik Baldwin-Ramułt Stanisława Pawłowska Bartosz Kapustka Dariusz Kubisztal Mark M. Dintenfass Maximus the Greek Jerzy Nowak Alfred Szczepański Krzysztof Wojdan Władysław Dziadosz Tadeusz Kuziora Abraham Hirschfeld Jan Wiśniewski Roman Dzieślewski Salomon Keil Józef Ujejski Leon Kellner Babis Bizas Marcin Wrona Katarzyna Mróz Edward Tutaj Apostolos Athanassakis Tomasz Oleksy Artur Prokop Maciej Nalepa Marek Dochnal Ēlias Lagios Juliusz Mokry Ferdynand Chaber Ignacy Schiper Jan Wojnarski Andrzej Zielinski Józef Barbachen Robert Wardzała Andrew M. Odlyzko Antonios Nikopolidis Wilhelm Wolff Aureli Serda-Teodorski Józef Szujski Krystyna Kuperberg Stella Bloch Stanisław Poręba Michał Heller Sebastian Mnich Olga Gerovasili Mirosław Jękot Napoleon Zervas Konstantinos Dimou Yannis Anastasiou Jerzy Karszniewicz Roman Brandstaetter Jan Tarnowski
Marcin Dzieński, Katarzyna Mróz, Mirosław Kubisztal, Józef Barbachen, Andrzej Zielinski, Anny Ondra, Adolphe Basler, Wojciech Klich, Marian Wodziński and Wilhelm Wolff were born at Tarnów or Arta
Marcin Dzieński Katarzyna Mróz Mirosław Kubisztal Józef Barbachen Andrzej Zielinski Anny Ondra Adolphe Basler Wojciech Klich Marian Wodziński Wilhelm Wolff
action filter_type
action union
action find_reverse
entity Tarnów
relation place of birth
action find_reverse
entity Arta
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Tarnów'], [{'concept': 'common name'}, 'place of birth', 'Arta']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { VALUES ( ?u ) { ( resource:Tarnów ) ( resource:Arta ) } . ?c property:place_of_birth ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do approximately 3041 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3041
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?c = 3041 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3041
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?c = 3041 ) }
[]
musical instrument common name
SYSTEM
3
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3041
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?c = 3041 ) }
violin organ drum kit
3
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3041
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?c = 3041 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 2868 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2868
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?y = 2868 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2868
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?y = 2868 ) }
[]
musical instrument common name
Q8338 Q1444 Q128309
SYSTEM
trumpet, organ, drum kit
Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2868
[ANSWERS] are played by around 2868 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?y = 2868 ) }
trumpet organ drum kit
Trumpet, organ and drum kit are played by around 2868 people
trumpet organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2868
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?y ) WHERE { ?m property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?y = 2868 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q62618
P27
Q3024240 Q7275
USER
How many former countries and states are Anny Ondra an inhabitant of ?
(Q62618,P27,c(Q3024240)) (Q62618,P27,c(Q7275))
action count
action union
action filter_type
action find
entity Q62618
relation P27
type Q3024240
action filter_type
action find
entity Q62618
relation P27
type Q7275
['Q62618', 'P27', {'concept': 'Q3024240'}] ['Q62618', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { resource:Q62618 property:P27 ?h . ?h rdf:type ontology:Q3024240 } UNION { resource:Q62618 property:P27 ?h . ?h rdf:type ontology:Q7275 } }
Anny Ondra
action count
action union
action filter_type
action find
entity Anny Ondra
relation country of citizenship
type former country
action filter_type
action find
entity Anny Ondra
relation country of citizenship
type state
['Anny Ondra', 'country of citizenship', {'concept': 'former country'}] ['Anny Ondra', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { resource:Anny_Ondra property:country_of_citizenship ?h . ?h rdf:type ontology:former_country } UNION { resource:Anny_Ondra property:country_of_citizenship ?h . ?h rdf:type ontology:state } }
[]
former country state
SYSTEM
1 former countries and 1 states
Q28513 Q33946
(Q62618,P27,c(Q3024240)) (Q62618,P27,c(Q7275))
action count
action union
action filter_type
action find
entity Q62618
relation P27
type Q3024240
action filter_type
action find
entity Q62618
relation P27
type Q7275
[ANSWER]
['Q62618', 'P27', {'concept': 'Q3024240'}] ['Q62618', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { resource:Q62618 property:P27 ?h . ?h rdf:type ontology:Q3024240 } UNION { resource:Q62618 property:P27 ?h . ?h rdf:type ontology:Q7275 } }
Austria-Hungary Czechoslovakia
1 former countries and 1 states
action count
action union
action filter_type
action find
entity Anny Ondra
relation country of citizenship
type former country
action filter_type
action find
entity Anny Ondra
relation country of citizenship
type state
['Anny Ondra', 'country of citizenship', {'concept': 'former country'}] ['Anny Ondra', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { resource:Anny_Ondra property:country_of_citizenship ?h . ?h rdf:type ontology:former_country } UNION { resource:Anny_Ondra property:country_of_citizenship ?h . ?h rdf:type ontology:state } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q34379 Q838948 Q3305213
USER
Which musical instruments are depicted in min number of works of art or paintings ?
(c(Q838948)|c(Q3305213),P180,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?i WHERE { { ?z property:P180 ?i . ?i rdf:type ontology:Q34379 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P180 ?i . ?i rdf:type ontology:Q34379 . ?z rdf:type ontology:Q3305213 } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?k WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } } GROUP BY ?k } . FILTER ( ?b = ?r ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?i WHERE { { ?z property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?z rdf:type ontology:work_of_art } UNION { ?z property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?z rdf:type ontology:painting } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?k WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:painting ) } } GROUP BY ?k } . FILTER ( ?b = ?r ) }
[]
musical instrument work of art painting
Q81982 Q218547 Q8371
SYSTEM
harpsichord, Sigismund Bell, cello
Q8371 Q3382191 Q7933058 Q81982 Q218547 Q8338 Q173453 Q1141589 Q426948 Q871633 Q3500690 Q80019 Q1798603
(c(Q838948)|c(Q3305213),P180,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
[ANSWERS] are depicted in min number of works of art or paintings
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?i WHERE { { ?z property:P180 ?i . ?i rdf:type ontology:Q34379 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P180 ?i . ?i rdf:type ontology:Q34379 . ?z rdf:type ontology:Q3305213 } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?k WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } } GROUP BY ?k } . FILTER ( ?b = ?r ) }
cello upright piano Viola caipira harpsichord Sigismund Bell trumpet wind instrument Crotales sistrum Handbell Church bell double bass string instrument
Harpsichord, Sigismund Bell and cello are depicted in min number of works of art or paintings
harpsichord Sigismund Bell cello
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?i WHERE { { ?z property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?z rdf:type ontology:work_of_art } UNION { ?z property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?z rdf:type ontology:painting } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?k WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:painting ) } } GROUP BY ?k } . FILTER ( ?b = ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q266339
P19
Q486972
USER
How many human settlements were Józef Bem born ?
(Q266339,P19,c(Q486972))
action count
action filter_type
action find
entity Q266339
relation P19
type Q486972
['Q266339', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:Q486972 . resource:Q266339 property:P19 ?r }
Józef Bem
action count
action filter_type
action find
entity Józef Bem
relation place of birth
type human settlement
['Józef Bem', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:human_settlement . resource:Józef_Bem property:place_of_birth ?r }
[]
human settlement
SYSTEM
1
Q106281
(Q266339,P19,c(Q486972))
action count
action filter_type
action find
entity Q266339
relation P19
type Q486972
[ANSWER]
['Q266339', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:Q486972 . resource:Q266339 property:P19 ?r }
Tarnów
1
action count
action filter_type
action find
entity Józef Bem
relation place of birth
type human settlement
['Józef Bem', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:human_settlement . resource:Józef_Bem property:place_of_birth ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q266339
P140
Q874405
USER
Which social group is the religion of that person ?
action filter_type
action find
entity Q266339
relation P140
type Q874405
SELECT DISTINCT ?u WHERE { resource:Q266339 property:P140 ?u . ?u rdf:type ontology:Q874405 }
Józef Bem
action filter_type
action find
entity Józef Bem
relation religion
type social group
SELECT DISTINCT ?u WHERE { resource:Józef_Bem property:religion ?u . ?u rdf:type ontology:social_group }
[]
social group
Q5043
SYSTEM
Christianity
Q5043
action filter_type
action find
entity Q266339
relation P140
type Q874405
[ANSWER] is the religion of that person
SELECT DISTINCT ?u WHERE { resource:Q266339 property:P140 ?u . ?u rdf:type ontology:Q874405 }
Christianity
Christianity is the religion of that person
Christianity
action filter_type
action find
entity Józef Bem
relation religion
type social group
SELECT DISTINCT ?u WHERE { resource:Józef_Bem property:religion ?u . ?u rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5043
P136
Q2342494
USER
Which collectables have that social group as their type ?
(c(Q2342494),P136,Q5043)
action filter_type
action find_reverse
entity Q5043
relation P136
type Q2342494
[{'concept': 'Q2342494'}, 'P136', 'Q5043']
SELECT DISTINCT ?x WHERE { ?x property:P136 resource:Q5043 . ?x rdf:type ontology:Q2342494 }
Christianity
action filter_type
action find_reverse
entity Christianity
relation genre
type collectable
[{'concept': 'collectable'}, 'genre', 'Christianity']
SELECT DISTINCT ?x WHERE { ?x property:genre resource:Christianity . ?x rdf:type ontology:collectable }
[]
collectable
Q3071431 Q2475623 Q7734295
SYSTEM
Spiritual Canticle, El Castillo Interior, The Five Thousand Year Leap
Q3136640 Q7734295 Q7797885 Q1193229 Q5193120 Q1570659 Q3071431 Q5595158 Q5118115 Q3211262 Q7302977 Q7754319 Q2475623 Q5232904 Q7859317 Q7731528 Q7859315 Q2962522 Q7313991
(c(Q2342494),P136,Q5043)
action filter_type
action find_reverse
entity Q5043
relation P136
type Q2342494
[ANSWERS] have that social group as their type
[{'concept': 'Q2342494'}, 'P136', 'Q5043']
SELECT DISTINCT ?x WHERE { ?x property:P136 resource:Q5043 . ?x rdf:type ontology:Q2342494 }
The Story of a Soul The Five Thousand Year Leap Three Upbuilding Discourses, 1844 Fear and Trembling Cult-Proofing Your Kids On the Jews and Their Lies Spiritual Canticle Grand Theft Jesus Churches That Abuse Dark Night of the Soul Recovering Biblical Manhood and Womanhood The Normal Christian Life El Castillo Interior Poem of the Man God Two Upbuilding Discourses, 1844 The Economy of God Two Upbuilding Discourses, 1843 Camino de Perfección Repetition
Spiritual Canticle, El Castillo Interior and The Five Thousand Year Leap have that social group as their type
Spiritual Canticle El Castillo Interior The Five Thousand Year Leap
action filter_type
action find_reverse
entity Christianity
relation genre
type collectable
[{'concept': 'collectable'}, 'genre', 'Christianity']
SELECT DISTINCT ?x WHERE { ?x property:genre resource:Christianity . ?x rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q106281
P190
Q56061 Q515
USER
How many administrative territories and cities are twin town of Tarnów ?
(c(Q56061),P190,Q106281) (c(Q515),P190,Q106281)
action count
action union
action filter_type
action find_reverse
entity Q106281
relation P190
type Q56061
action filter_type
action find_reverse
entity Q106281
relation P190
type Q515
[{'concept': 'Q56061'}, 'P190', 'Q106281'] [{'concept': 'Q515'}, 'P190', 'Q106281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?y ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?z rdf:type ?y }
Tarnów
action count
action union
action filter_type
action find_reverse
entity Tarnów
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Tarnów
relation sister city
type city
[{'concept': 'administrative territorial entity'}, 'sister city', 'Tarnów'] [{'concept': 'city'}, 'sister city', 'Tarnów']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?y ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?z rdf:type ?y }
[]
administrative territorial entity city
SYSTEM
2 administrative territories and 1 cities
Q646850 Q145002 Q802
(c(Q56061),P190,Q106281) (c(Q515),P190,Q106281)
action count
action union
action filter_type
action find_reverse
entity Q106281
relation P190
type Q56061
action filter_type
action find_reverse
entity Q106281
relation P190
type Q515
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q106281'] [{'concept': 'Q515'}, 'P190', 'Q106281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?y ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?z rdf:type ?y }
Kiskőrös Trenčín Nowy Sącz
2 administrative territories and 1 cities
action count
action union
action filter_type
action find_reverse
entity Tarnów
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Tarnów
relation sister city
type city
[{'concept': 'administrative territorial entity'}, 'sister city', 'Tarnów'] [{'concept': 'city'}, 'sister city', 'Tarnów']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?y ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?z rdf:type ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q106281
P190
Q515
USER
Which city is partner town of that human settlement ?
action filter_type
action find
entity Q106281
relation P190
type Q515
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q515 . resource:Q106281 property:P190 ?y }
Tarnów
action filter_type
action find
entity Tarnów
relation sister city
type city
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:city . resource:Tarnów property:sister_city ?y }
[]
city
Q646850
SYSTEM
Kiskőrös
Q646850
action filter_type
action find
entity Q106281
relation P190
type Q515
[ANSWER] is partner town of that human settlement
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q515 . resource:Q106281 property:P190 ?y }
Kiskőrös
Kiskőrös is partner town of that human settlement
Kiskőrös
action filter_type
action find
entity Tarnów
relation sister city
type city
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:city . resource:Tarnów property:sister_city ?y }
[]