Simple Question (Direct)
Simple Question
Q1441226
P39
Q12737077
USER
Which occupation was a position held by Francesco Silvani ?
(Q1441226,P39,c(Q12737077))
action filter_type
action find
entity Q1441226
relation P39
type Q12737077
['Q1441226', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1441226 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Francesco Silvani
action filter_type
action find
entity Francesco Silvani
relation position held
type occupation
['Francesco Silvani', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Francesco_Silvani property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q103163
SYSTEM
abbot
Q103163
(Q1441226,P39,c(Q12737077))
action filter_type
action find
entity Q1441226
relation P39
type Q12737077
[ANSWER] was a position held by Francesco Silvani
['Q1441226', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1441226 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
abbot
Abbot was a position held by Francesco Silvani
abbot
action filter_type
action find
entity Francesco Silvani
relation position held
type occupation
['Francesco Silvani', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Francesco_Silvani property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1441226
P1412
Q34770
USER
Which language is spoken by Francesco Silvani ?
(Q1441226,P1412,c(Q34770))
action filter_type
action find
entity Q1441226
relation P1412
type Q34770
['Q1441226', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q1441226 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Francesco Silvani
action filter_type
action find
entity Francesco Silvani
relation languages spoken, written or signed
type language
['Francesco Silvani', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Francesco_Silvani property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q1441226,P1412,c(Q34770))
action filter_type
action find
entity Q1441226
relation P1412
type Q34770
The [ANSWER] is spoken by Francesco Silvani
['Q1441226', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q1441226 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Italian
The Italian is spoken by Francesco Silvani
Italian
action filter_type
action find
entity Francesco Silvani
relation languages spoken, written or signed
type language
['Francesco Silvani', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Francesco_Silvani property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5997533
Q34770
USER
And how about Mariano Alberto Gutiérrez?
(Q5997533,P1412,c(Q34770))
action filter_type
action find
entity Q5997533
relation P1412
type Q34770
['Q5997533', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q5997533 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Mariano Alberto Gutiérrez
action filter_type
action find
entity Mariano Alberto Gutiérrez
relation languages spoken, written or signed
type language
['Mariano Alberto Gutiérrez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Mariano_Alberto_Gutiérrez property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5997533,P1412,c(Q34770))
action filter_type
action find
entity Q5997533
relation P1412
type Q34770
[ANSWER]
['Q5997533', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q5997533 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity Mariano Alberto Gutiérrez
relation languages spoken, written or signed
type language
['Mariano Alberto Gutiérrez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Mariano_Alberto_Gutiérrez property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q652
P407
Q82799
USER
Which names were done in Italian language ?
(c(Q82799),P407,Q652)
action filter_type
action find_reverse
entity Q652
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', 'Q652']
SELECT DISTINCT ?w WHERE { ?w property:P407 resource:Q652 . ?w rdf:type ontology:Q82799 }
Italian
action filter_type
action find_reverse
entity Italian
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', 'Italian']
SELECT DISTINCT ?w WHERE { ?w property:language_of_work_or_name resource:Italian . ?w rdf:type ontology:name }
[]
name
Q1069827 Q4273929 Q16877784
SYSTEM
Rosario, Madeleine, Napoli
Q21012817 Q8140765 Q16876334 Q4262903 Q26986400 Q5800626 Q1435795 Q21164338 Q20009871 Q21516728 Q6663178 Q1541820 Q5270047 Q1391000 Q17332384 Q16877784 Q1816681 Q27427809 Q229146 Q26923373 Q16869947 Q451705 Q16479734 Q1054982 Q17521054 Q16872088 Q18186214 Q2177260 Q831120 Q912131 Q16478446 Q474185 Q537566 Q1407594 Q1069827 Q27258432 Q16884368 Q26156129 Q16881311 Q16148200 Q10613677 Q1439408 Q1033698 Q12901049 Q16600837 Q1355877 Q821902 Q3932445 Q26202541 Q21012799 Q16880790 Q21452467 Q27132309 Q2547223 Q809483 Q2671589 Q340322 Q4273929 Q20663491 Q1049855 Q27133628 Q24229341 Q23038817
(c(Q82799),P407,Q652)
action filter_type
action find_reverse
entity Q652
relation P407
type Q82799
[ANSWERS] were done in Italian language
[{'concept': 'Q82799'}, 'P407', 'Q652']
SELECT DISTINCT ?w WHERE { ?w property:P407 resource:Q652 . ?w rdf:type ontology:Q82799 }
Campanini Rossi Maltese Liprandi (surname) Tadolini De Martino Fontana Crotta Cartoni Borgese Lo Russo Aloisi Di Martino Facetti Saladino Napoli Lelio Alberoni Mori Sacco Fiore Amadei Bassano Ceresoli Abbati Levi Raffaele Russo Tiziano Bianchi Martini Amoruso Furio Ferrari Rosario Carpani Tedesco Aventino Poli Arditi Moreno Fossati Cantarini Michele Scevola Ermenegildo Berlinghieri Remus Laporta Cleofonte Orlando Scalvini Acerbi Beppe Bartolini Costa Achillini Madeleine Nicolich Castro Acquaviva Toscano Gatti
Rosario, Madeleine and Napoli were done in Italian language
Rosario Madeleine Napoli
action filter_type
action find_reverse
entity Italian
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', 'Italian']
SELECT DISTINCT ?w WHERE { ?w property:language_of_work_or_name resource:Italian . ?w rdf:type ontology:name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4273929
P1750
Q186081
USER
Which time interval is connected with that name ?
(Q4273929,P1750,c(Q186081))
action filter_type
action find
entity Q4273929
relation P1750
type Q186081
['Q4273929', 'P1750', {'concept': 'Q186081'}]
SELECT DISTINCT ?r WHERE { resource:Q4273929 property:P1750 ?r . ?r rdf:type ontology:Q186081 }
Madeleine
action filter_type
action find
entity Madeleine
relation name day
type time interval
['Madeleine', 'name day', {'concept': 'time interval'}]
SELECT DISTINCT ?r WHERE { resource:Madeleine property:name_day ?r . ?r rdf:type ontology:time_interval }
[]
time interval
Clarification for simple ques.
Q16877784
SYSTEM
Did you mean Napoli ?
Q1069827 Q4273929 Q16877784
(Q1069827,P1750,c(Q186081)) (Q4273929,P1750,c(Q186081)) (Q16877784,P1750,c(Q186081))
[ANSWER]
['Q1069827', 'P1750', {'concept': 'Q186081'}] ['Q4273929', 'P1750', {'concept': 'Q186081'}] ['Q16877784', 'P1750', {'concept': 'Q186081'}]
SELECT DISTINCT ?r WHERE { resource:Q4273929 property:P1750 ?r . ?r rdf:type ontology:Q186081 }
Rosario Madeleine Napoli
Did you mean Napoli ?
Napoli
['Rosario', 'name day', {'concept': 'time interval'}] ['Madeleine', 'name day', {'concept': 'time interval'}] ['Napoli', 'name day', {'concept': 'time interval'}]
SELECT DISTINCT ?r WHERE { resource:Madeleine property:name_day ?r . ?r rdf:type ontology:time_interval }
[]
Simple Question (Coreferenced)
USER
No, I meant Madeleine. Could you tell me the answer for that?
(Q4273929,P1750,c(Q186081))
Q4273929
['Q4273929', 'P1750', {'concept': 'Q186081'}]
['Madeleine', 'name day', {'concept': 'time interval'}]
[]
Q2725
SYSTEM
July 22
Q2725
(Q4273929,P1750,c(Q186081))
action filter_type
action find
entity Q4273929
relation P1750
type Q186081
[ANSWER] is connected with that name
['Q4273929', 'P1750', {'concept': 'Q186081'}]
SELECT DISTINCT ?r WHERE { resource:Q4273929 property:P1750 ?r . ?r rdf:type ontology:Q186081 }
July 22
July 22 is connected with that name
July 22
action filter_type
action find
entity Madeleine
relation name day
type time interval
['Madeleine', 'name day', {'concept': 'time interval'}]
SELECT DISTINCT ?r WHERE { resource:Madeleine property:name_day ?r . ?r rdf:type ontology:time_interval }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q36206
P407
Q34770 Q482994 Q2031291
USER
How many languages are approximately the same number of albums and releases composed in as Lak ?
(c(Q482994)|c(Q2031291),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P407
type Q482994
type Q2031291
[[{'concept': 'Q482994'}, {'concept': 'Q2031291'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?p WHERE { VALUES ( ?f ) { ( ontology:Q2031291 ) ( ontology:Q482994 ) } . ?d rdf:type ?f } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:P407 resource:Q36206 . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q482994 ) ( ontology:Q2031291 ) } } } } . FILTER ( ?z = ?l ) }
Lak
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action count
action filter_multi_types
action find_reverse
entity Lak
relation language of work or name
type album
type release
[[{'concept': 'album'}, {'concept': 'release'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?p WHERE { VALUES ( ?f ) { ( ontology:release ) ( ontology:album ) } . ?d rdf:type ?f } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:language_of_work_or_name resource:Lak . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:album ) ( ontology:release ) } } } } . FILTER ( ?z = ?l ) }
[]
language album release
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q482994)|c(Q2031291),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P407
type Q482994
type Q2031291
[ANSWER]
[[{'concept': 'Q482994'}, {'concept': 'Q2031291'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?p WHERE { VALUES ( ?f ) { ( ontology:Q2031291 ) ( ontology:Q482994 ) } . ?d rdf:type ?f } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:P407 resource:Q36206 . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q482994 ) ( ontology:Q2031291 ) } } } } . FILTER ( ?z = ?l ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action count
action filter_multi_types
action find_reverse
entity Lak
relation language of work or name
type album
type release
[[{'concept': 'album'}, {'concept': 'release'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?p WHERE { VALUES ( ?f ) { ( ontology:release ) ( ontology:album ) } . ?d rdf:type ?f } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:language_of_work_or_name resource:Lak . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:album ) ( ontology:release ) } } } } . FILTER ( ?z = ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q18130932
P407
Q34770 Q482994 Q2031291
USER
And also tell me about Traditional Chinese?
(c(Q482994)|c(Q2031291),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q18130932
relation P407
type Q482994
type Q2031291
[[{'concept': 'Q482994'}, {'concept': 'Q2031291'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2031291 ) ( ontology:Q482994 ) } } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P407 resource:Q18130932 . { { ?l rdf:type ontology:Q482994 } UNION { ?l rdf:type ontology:Q2031291 } } } } }
Traditional Chinese
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action count
action filter_multi_types
action find_reverse
entity Traditional Chinese
relation language of work or name
type album
type release
[[{'concept': 'album'}, {'concept': 'release'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:release ) ( ontology:album ) } } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:language_of_work_or_name resource:Traditional_Chinese . { { ?l rdf:type ontology:album } UNION { ?l rdf:type ontology:release } } } } }
[]
language album release
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q482994)|c(Q2031291),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q18130932
relation P407
type Q482994
type Q2031291
[ANSWER]
[[{'concept': 'Q482994'}, {'concept': 'Q2031291'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2031291 ) ( ontology:Q482994 ) } } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P407 resource:Q18130932 . { { ?l rdf:type ontology:Q482994 } UNION { ?l rdf:type ontology:Q2031291 } } } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action count
action filter_multi_types
action find_reverse
entity Traditional Chinese
relation language of work or name
type album
type release
[[{'concept': 'album'}, {'concept': 'release'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:release ) ( ontology:album ) } } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:language_of_work_or_name resource:Traditional_Chinese . { { ?l rdf:type ontology:album } UNION { ?l rdf:type ontology:release } } } } }
[]