Simple Question (Direct)
Simple Question
Q68146
P19
Q486972
USER
Where was Gabriel Valentin born ?
(Q68146,P19,c(Q486972))
action filter_type
action find
entity Q68146
relation P19
type Q486972
['Q68146', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?c WHERE { resource:Q68146 property:P19 ?c . ?c rdf:type ontology:Q486972 }
Gabriel Valentin
action filter_type
action find
entity Gabriel Valentin
relation place of birth
type human settlement
['Gabriel Valentin', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?c WHERE { resource:Gabriel_Valentin property:place_of_birth ?c . ?c rdf:type ontology:human_settlement }
[]
human settlement
Q1799
SYSTEM
Wrocław
Q1799
(Q68146,P19,c(Q486972))
action filter_type
action find
entity Q68146
relation P19
type Q486972
Gabriel Valentin was born in [ANSWER]
['Q68146', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?c WHERE { resource:Q68146 property:P19 ?c . ?c rdf:type ontology:Q486972 }
Wrocław
Gabriel Valentin was born in Wrocław
Wrocław
action filter_type
action find
entity Gabriel Valentin
relation place of birth
type human settlement
['Gabriel Valentin', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?c WHERE { resource:Gabriel_Valentin property:place_of_birth ?c . ?c rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1799
P291
Q571
USER
Which book has that human settlement as its release location ?
(c(Q571),P291,Q1799)
action filter_type
action find_reverse
entity Q1799
relation P291
type Q571
[{'concept': 'Q571'}, 'P291', 'Q1799']
SELECT DISTINCT ?m WHERE { ?m property:P291 resource:Q1799 . ?m rdf:type ontology:Q571 }
Wrocław
action filter_type
action find_reverse
entity Wrocław
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', 'Wrocław']
SELECT DISTINCT ?m WHERE { ?m property:place_of_publication resource:Wrocław . ?m rdf:type ontology:book }
[]
book
Q18508791
SYSTEM
Nasze osiągnięcia w budowie mostów
Q18508791
(c(Q571),P291,Q1799)
action filter_type
action find_reverse
entity Q1799
relation P291
type Q571
To nasze osiągnięcia w budowie mostów has that human settlement as its release location
[{'concept': 'Q571'}, 'P291', 'Q1799']
SELECT DISTINCT ?m WHERE { ?m property:P291 resource:Q1799 . ?m rdf:type ontology:Q571 }
Nasze osiągnięcia w budowie mostów
To nasze osiągnięcia w budowie mostów has that human settlement as its release location
Nasze osiągnięcia w budowie mostów
action filter_type
action find_reverse
entity Wrocław
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', 'Wrocław']
SELECT DISTINCT ?m WHERE { ?m property:place_of_publication resource:Wrocław . ?m rdf:type ontology:book }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18508791
P629
Q2342494
USER
What is that book an edition or translation of ?
(Q18508791,P629,c(Q2342494))
action filter_type
action find
entity Q18508791
relation P629
type Q2342494
['Q18508791', 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ?r WHERE { resource:Q18508791 property:P629 ?r . ?r rdf:type ontology:Q2342494 }
Nasze osiągnięcia w budowie mostów
action filter_type
action find
entity Nasze osiągnięcia w budowie mostów
relation edition or translation of
type collectable
['Nasze osiągnięcia w budowie mostów', 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ?r WHERE { resource:Nasze_osiągnięcia_w_budowie_mostów property:edition_or_translation_of ?r . ?r rdf:type ontology:collectable }
[]
collectable
Q18508792
SYSTEM
Nasze osiągnięcia w budowie mostów
Q18508792
(Q18508791,P629,c(Q2342494))
action filter_type
action find
entity Q18508791
relation P629
type Q2342494
That book an edition or translation of is [ANSWER]
['Q18508791', 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ?r WHERE { resource:Q18508791 property:P629 ?r . ?r rdf:type ontology:Q2342494 }
Nasze osiągnięcia w budowie mostów
That book an edition or translation of is Nasze osiągnięcia w budowie mostów
Nasze osiągnięcia w budowie mostów
action filter_type
action find
entity Nasze osiągnięcia w budowie mostów
relation edition or translation of
type collectable
['Nasze osiągnięcia w budowie mostów', 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ?r WHERE { resource:Nasze_osiągnięcia_w_budowie_mostów property:edition_or_translation_of ?r . ?r rdf:type ontology:collectable }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P276
Q486972 Q838948 Q1190554
USER
Which human settlements are approximately 1 works of art and events located ?
(c(Q838948)|c(Q1190554),P276,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q838948
action find_reverse_tuple_counts
relation P276
type Q486972
type Q1190554
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q1190554'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?r WHERE { VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q1190554 ) } . ?v rdf:type ?h } GROUP BY ?r } . FILTER ( ?a = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation location
type human settlement
type work of art
action find_reverse_tuple_counts
relation location
type human settlement
type event
value 1
[[{'concept': 'work of art'}, {'concept': 'event'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?r WHERE { VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:event ) } . ?v rdf:type ?h } GROUP BY ?r } . FILTER ( ?a = 1 ) }
[]
human settlement work of art event
Q37333 Q2916 Q47554
SYSTEM
Lublin, Osnabrück, Toruń
Q749717 Q1146299 Q15055810 Q6500069 Q260055 Q826068 Q660921 Q3412257 Q1713454 Q5303551 Q1018841 Q7227614 Q575676 Q576636 Q7580395 Q106281 Q1114128 Q5213494 Q3483898 Q514540 Q822970 Q3077810 Q2448744 Q42595 Q1658489 Q991009 Q1342525 Q110007 Q158004 Q2916 Q2128677 Q723795 Q2616257 Q16898275 Q251231 Q1914864 Q738353 Q121765 Q1962211 Q1002859 Q927947 Q9282967 Q8030282 Q48898 Q47554 Q873362 Q2026687 Q328672 Q996014 Q2648217 Q2058213 Q602939 Q627392 Q303423 Q990057 Q355767 Q2300840 Q92212 Q1113619 Q314066 Q355403 Q8040693 Q7685699 Q173270 Q3501103 Q769361 Q264201 Q1006446 Q2791007 Q2843 Q102317 Q5609962 Q870499 Q671481 Q123511 Q5830582 Q1043326 Q3817208 Q2065987 Q1878926 Q2625523 Q234184 Q2705199 Q2561260 Q835966 Q603261 Q145972 Q946344 Q1936132 Q3126518 Q2395193 Q255524 Q319813 Q993904 Q2638835 Q3573110 Q3208442 Q2047201 Q701408 Q40708 Q773853 Q668600 Q5664192 Q37333 Q22704716 Q1927937 Q27646009 Q7883566 Q748485 Q8029410 Q82765 Q910729 Q2488569 Q432917 Q630974 Q2018838 Q4868785 Q1640615 Q3321607 Q552523 Q984222 Q6695663 Q1326964 Q81033 Q2309210 Q2147624 Q2175554 Q15624 Q5201642 Q3296030 Q6406124 Q989813 Q104731 Q1025864 Q705271 Q1011982 Q2497905
(c(Q838948)|c(Q1190554),P276,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P276
type Q486972
type Q838948
action find_reverse_tuple_counts
relation P276
type Q486972
type Q1190554
value 1
[ANSWERS] are approximately 1 works of art and events located
[[{'concept': 'Q838948'}, {'concept': 'Q1190554'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?r WHERE { VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q1190554 ) } . ?v rdf:type ?h } GROUP BY ?r } . FILTER ( ?a = 1 ) }
Kunowice Custoza Diersheim Laurelhurst Trzciano, Pomeranian Voivodeship Krosno Deutsch-Wagram Płowce Ulm-Jungingen Downtown Portland Węgierska Górka Poncey-Highland Lutter am Barenberge Huamantla Spring Branch Tarnów Minot Air Force Base Pęcice Sillery, Quebec City Westend Krojanty Kuryłówka Boschpoort Magenta Todos los Santos Brouwershaven Gronau Union Square Piotrków Trybunalski Osnabrück Cyców Heugem Maciejowice Târgu Jiu Amstetten Małujowice Matamoros Astoria Racławice De Baarsjes Fuentes de Oñoro Guzów, Szydłowiec County Wolica Śniatycka Levent Toruń Breitenfeld Verkiai Tiergarten Setauket-East Setauket Komarów-Osada Woodville French Quarter Bolimów Sarbinowo, Gmina Dębno Dobromierz, Lower Silesian Voivodeship Ademuz Turaida Opole Lipany Bergen-Enkheim Legnickie Pole Wytyczno Tarczek Veracruz Studzianki Pancerne Mokra, Silesian Voivodeship Mariazell Henryków Lubański Ciółkowo Lübeck Kielce Grochowiska, Świętokrzyskie Voivodeship Ouchy Tindari Grudziądz Łowczówek East Village Krzykawka Sluis Ceber, Świętokrzyskie Voivodeship Ginneken Chełm Grotniki Duże Lubiszewo Tczewskie Alesia Drakenburg Zamość Alba de Tormes Watergraafsmeer Hammarby Sjöstad Filipów, Podlaskie Voivodeship Oberndorf bei Salzburg Siedlce Orizaba Shatsk Cutanda La Défense 1 Zolitūde Welfesholz Villaviciosa de Tajuña Venice Dürnstein Alcolea Lublin Andersberg Orthen Kuřívody Gołymin-Ośrodek Morningside Heights Wola Cyrusowa Olsztyn Burkatów Gołąb, Puławy County Alt-Godesberg Kerameikos Roombeek Bates-Hendricks Tamames Mont-Mesly Mellrichstadt Janowo, Nidzica County Lubrze Hochkreuz Monterrey Komarowo Rheindahlen Logan Circle Molins de Rei Czarnowo, Nowy Dwór Mazowiecki County Strawberry Kije, Lubusz Voivodeship Raszyn Gorzów Wielkopolski Grunwald, Warmian-Masurian Voivodeship Sankelmark Lutynia, Środa Śląska County Ordal
Lublin, Osnabrück and Toruń are approximately 1 works of art and events located
Lublin Osnabrück Toruń
action approx
action union
action find_reverse_tuple_counts
relation location
type human settlement
type work of art
action find_reverse_tuple_counts
relation location
type human settlement
type event
value 1
[[{'concept': 'work of art'}, {'concept': 'event'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?r WHERE { VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:event ) } . ?v rdf:type ?h } GROUP BY ?r } . FILTER ( ?a = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2916
P112
Q502895
USER
Who was the founder of that human settlement ?
(Q2916,P112,c(Q502895))
action filter_type
action find
entity Q2916
relation P112
type Q502895
['Q2916', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q2916 property:P112 ?w . ?w rdf:type ontology:Q502895 }
Osnabrück
action filter_type
action find
entity Osnabrück
relation founder
type common name
['Osnabrück', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Osnabrück property:founder ?w . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q47554
SYSTEM
Did you mean Toruń ?
Q37333 Q2916 Q47554
(Q37333,P112,c(Q502895)) (Q2916,P112,c(Q502895)) (Q47554,P112,c(Q502895))
[ANSWER]
['Q37333', 'P112', {'concept': 'Q502895'}] ['Q2916', 'P112', {'concept': 'Q502895'}] ['Q47554', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q2916 property:P112 ?w . ?w rdf:type ontology:Q502895 }
Lublin Osnabrück Toruń
Did you mean Toruń ?
Toruń
['Lublin', 'founder', {'concept': 'common name'}] ['Osnabrück', 'founder', {'concept': 'common name'}] ['Toruń', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Osnabrück property:founder ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Osnabrück. Could you tell me the answer for that?
(Q2916,P112,c(Q502895))
Q2916
['Q2916', 'P112', {'concept': 'Q502895'}]
['Osnabrück', 'founder', {'concept': 'common name'}]
[]
Q3044
SYSTEM
Charlemagne
Q3044
(Q2916,P112,c(Q502895))
action filter_type
action find
entity Q2916
relation P112
type Q502895
The founder of that human settlement was the [ANSWER]
['Q2916', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q2916 property:P112 ?w . ?w rdf:type ontology:Q502895 }
Charlemagne
The founder of that human settlement was the Charlemagne
Charlemagne
action filter_type
action find
entity Osnabrück
relation founder
type common name
['Osnabrück', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Osnabrück property:founder ?w . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3044 Q946829 Q1980631
P40
Q502895
USER
Does that person have Gisela, daughter of Charlemagne and Silas Simmons as a child ?
(Q3044,P40,Q946829) (Q3044,P40,Q1980631)
action is_in
entity Q3044
action intersection
action find_reverse
entity Q946829
relation P40
action find_reverse
entity Q1980631
relation P40
['Q3044', 'P40', 'Q946829'] ['Q3044', 'P40', 'Q1980631']
ASK WHERE { resource:Q3044 property:P40 resource:Q946829 . resource:Q3044 property:P40 resource:Q1980631 }
Charlemagne Gisela, daughter of Charlemagne Silas Simmons
action is_in
entity Charlemagne
action intersection
action find_reverse
entity Gisela, daughter of Charlemagne
relation child
action find_reverse
entity Silas Simmons
relation child
['Charlemagne', 'child', 'Gisela, daughter of Charlemagne'] ['Charlemagne', 'child', 'Silas Simmons']
ASK WHERE { resource:Charlemagne property:child resource:Gisela,_daughter_of_Charlemagne . resource:Charlemagne property:child resource:Silas_Simmons }
[]
common name
SYSTEM
YES and NO respectively
(Q3044,P40,Q946829) (Q3044,P40,Q1980631)
action is_in
entity Q3044
action intersection
action find_reverse
entity Q946829
relation P40
action find_reverse
entity Q1980631
relation P40
[ANSWER]
['Q3044', 'P40', 'Q946829'] ['Q3044', 'P40', 'Q1980631']
ASK WHERE { resource:Q3044 property:P40 resource:Q946829 . resource:Q3044 property:P40 resource:Q1980631 }
YES and NO respectively
action is_in
entity Charlemagne
action intersection
action find_reverse
entity Gisela, daughter of Charlemagne
relation child
action find_reverse
entity Silas Simmons
relation child
['Charlemagne', 'child', 'Gisela, daughter of Charlemagne'] ['Charlemagne', 'child', 'Silas Simmons']
ASK WHERE { resource:Charlemagne property:child resource:Gisela,_daughter_of_Charlemagne . resource:Charlemagne property:child resource:Silas_Simmons }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2916 Q1577666
P6
Q502895
USER
Is Hans-Jürgen Fip the head of the government of Osnabrück ?
(Q2916,P6,Q1577666)
action is_in
entity Q1577666
action find
entity Q2916
relation P6
['Q2916', 'P6', 'Q1577666']
ASK WHERE { resource:Q2916 property:P6 resource:Q1577666 }
Osnabrück Hans-Jürgen Fip
action is_in
entity Hans-Jürgen Fip
action find
entity Osnabrück
relation head of government
['Osnabrück', 'head of government', 'Hans-Jürgen Fip']
ASK WHERE { resource:Osnabrück property:head_of_government resource:Hans-Jürgen_Fip }
[]
common name
SYSTEM
YES
(Q2916,P6,Q1577666)
action is_in
entity Q1577666
action find
entity Q2916
relation P6
[ANSWER]
['Q2916', 'P6', 'Q1577666']
ASK WHERE { resource:Q2916 property:P6 resource:Q1577666 }
Yes
action is_in
entity Hans-Jürgen Fip
action find
entity Osnabrück
relation head of government
['Osnabrück', 'head of government', 'Hans-Jürgen Fip']
ASK WHERE { resource:Osnabrück property:head_of_government resource:Hans-Jürgen_Fip }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q166142
USER
Which applications had their voice dubbing done by max number of people ?
(c(Q166142),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q166142
type Q502895
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?p ) WHERE { ?w property:P725 ?k . ?w rdf:type ontology:Q166142 . ?k rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?a rdf:type ontology:Q166142 . ?n rdf:type ontology:Q502895 . ?a property:P725 ?n } GROUP BY ?a } } }
action argmax
action find_tuple_counts
relation voice actor
type application
type common name
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?p ) WHERE { ?w property:voice_actor ?k . ?w rdf:type ontology:application . ?k rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?a rdf:type ontology:application . ?n rdf:type ontology:common_name . ?a property:voice_actor ?n } GROUP BY ?a } } }
[]
common name application
Q843131
SYSTEM
Super Smash Bros. Brawl
Q843131
(c(Q166142),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q166142
type Q502895
[ANSWER] had their voice dubbing done by max number of people
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?p ) WHERE { ?w property:P725 ?k . ?w rdf:type ontology:Q166142 . ?k rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?a rdf:type ontology:Q166142 . ?n rdf:type ontology:Q502895 . ?a property:P725 ?n } GROUP BY ?a } } }
Super Smash Bros. Brawl
Super Smash Bros. Brawl had their voice dubbing done by max number of people
Super Smash Bros. Brawl
action argmax
action find_tuple_counts
relation voice actor
type application
type common name
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?p ) WHERE { ?w property:voice_actor ?k . ?w rdf:type ontology:application . ?k rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?a rdf:type ontology:application . ?n rdf:type ontology:common_name . ?a property:voice_actor ?n } GROUP BY ?a } } }
[]