Simple Question (Direct)
Simple Question
Q101987
P463
Q484652
USER
Which international organization had Christine Lucyga as its member ?
(Q101987,P463,c(Q484652))
action filter_type
action find
entity Q101987
relation P463
type Q484652
['Q101987', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?i WHERE { resource:Q101987 property:P463 ?i . ?i rdf:type ontology:Q484652 }
Christine Lucyga
action filter_type
action find
entity Christine Lucyga
relation member of
type international organization
['Christine Lucyga', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?i WHERE { resource:Christine_Lucyga property:member_of ?i . ?i rdf:type ontology:international_organization }
[]
international organization
Q939743
SYSTEM
Parliamentary Assembly of the Council of Europe
Q939743
(Q101987,P463,c(Q484652))
action filter_type
action find
entity Q101987
relation P463
type Q484652
The [ANSWER] had Christine Lucyga as its member
['Q101987', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?i WHERE { resource:Q101987 property:P463 ?i . ?i rdf:type ontology:Q484652 }
Parliamentary Assembly of the Council of Europe
The Parliamentary Assembly of the Council of Europe had Christine Lucyga as its member
Parliamentary Assembly of the Council of Europe
action filter_type
action find
entity Christine Lucyga
relation member of
type international organization
['Christine Lucyga', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?i WHERE { resource:Christine_Lucyga property:member_of ?i . ?i rdf:type ontology:international_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P6
Q502895
USER
Which people have Italy as their heads of government ?
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q38 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Italy
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Italy property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
common name
Q47563 Q674957
SYSTEM
Matteo Renzi, Enrico Letta
Q47563 Q674957
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
[ANSWERS] have Italy as their heads of government
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q38 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Matteo Renzi Enrico Letta
Matteo Renzi and Enrico Letta have Italy as their heads of government
Matteo Renzi Enrico Letta
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Italy property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47563
P1412
Q34770
USER
Which language is Matteo Renzi capable of writing ?
(Q47563,P1412,c(Q34770))
action filter_type
action find
entity Q47563
relation P1412
type Q34770
['Q47563', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q34770 . resource:Q47563 property:P1412 ?v }
Matteo Renzi
action filter_type
action find
entity Matteo Renzi
relation languages spoken, written or signed
type language
['Matteo Renzi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:language . resource:Matteo_Renzi property:languages_spoken,_written_or_signed ?v }
[]
language
Q652
SYSTEM
Italian
Q652
(Q47563,P1412,c(Q34770))
action filter_type
action find
entity Q47563
relation P1412
type Q34770
[ANSWER] is Matteo Renzi capable of writing
['Q47563', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q34770 . resource:Q47563 property:P1412 ?v }
Italian
Italian is Matteo Renzi capable of writing
Italian
action filter_type
action find
entity Matteo Renzi
relation languages spoken, written or signed
type language
['Matteo Renzi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:language . resource:Matteo_Renzi property:languages_spoken,_written_or_signed ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3713795
Q34770
USER
And how about Donato Zoppo?
(Q3713795,P1412,c(Q34770))
action filter_type
action find
entity Q3713795
relation P1412
type Q34770
['Q3713795', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q3713795 property:P1412 ?u }
Donato Zoppo
action filter_type
action find
entity Donato Zoppo
relation languages spoken, written or signed
type language
['Donato Zoppo', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Donato_Zoppo property:languages_spoken,_written_or_signed ?u }
[]
language
Q652
SYSTEM
Italian
Q652
(Q3713795,P1412,c(Q34770))
action filter_type
action find
entity Q3713795
relation P1412
type Q34770
[ANSWER]
['Q3713795', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q3713795 property:P1412 ?u }
Italian
Italian
action filter_type
action find
entity Donato Zoppo
relation languages spoken, written or signed
type language
['Donato Zoppo', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Donato_Zoppo property:languages_spoken,_written_or_signed ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3713795
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q652,P27,c(Q15617994))
action filter_type
action find
entity Q3713795
relation P27
type Q15617994
['Q652', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q3713795 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Donato Zoppo
action filter_type
action find
entity Donato Zoppo
relation country of citizenship
type designation for an administrative territorial entity
['Italian', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Donato_Zoppo property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q652,P27,c(Q15617994))
action filter_type
action find
entity Q3713795
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q652', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q3713795 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Italy
Italy is the country of citizenship of that person
Italy
action filter_type
action find
entity Donato Zoppo
relation country of citizenship
type designation for an administrative territorial entity
['Italian', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Donato_Zoppo property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q38 Q408
P530
Q1048835
USER
Does Australia have diplomatic relationships with that administrative territory ?
(Q38,P530,Q408)
action is_in
entity Q408
action find
entity Q38
relation P530
['Q38', 'P530', 'Q408']
ASK WHERE { resource:Q38 property:P530 resource:Q408 }
Italy Australia
action is_in
entity Australia
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
YES
(Q38,P530,Q408)
action is_in
entity Q408
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q408']
ASK WHERE { resource:Q38 property:P530 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Australia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P364
Q34770 Q15416 Q21114848
USER
How many languages are considered to be the original language of creation of approximately 1871 television programs and magazine genres ?
(c(Q15416)|c(Q21114848),P364,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q21114848
value 1871
[[{'concept': 'Q15416'}, {'concept': 'Q21114848'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p rdf:type ontology:Q34770 . ?q rdf:type ontology:Q15416 . ?q property:P364 ?p } UNION { ?q property:P364 ?p . ?p rdf:type ontology:Q34770 . ?q rdf:type ontology:Q21114848 } } GROUP BY ?p } . FILTER ( ?k = 1871 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type magazine genre
value 1871
[[{'concept': 'television program'}, {'concept': 'magazine genre'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p rdf:type ontology:language . ?q rdf:type ontology:television_program . ?q property:original_language_of_work ?p } UNION { ?q property:original_language_of_work ?p . ?p rdf:type ontology:language . ?q rdf:type ontology:magazine_genre } } GROUP BY ?p } . FILTER ( ?k = 1871 ) }
[]
language television program magazine genre
SYSTEM
31
Q132659 Q13414913 Q13211 Q35499 Q35668 Q8785 Q1072111 Q34909 Q36765 Q33251 Q18130932 Q35726 Q36206 Q1321 Q33976 Q397 Q10862919 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q56530 Q25164 Q36790 Q29977 Q182695 Q3110592 Q837985 Q783605
(c(Q15416)|c(Q21114848),P364,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q21114848
value 1871
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q21114848'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p rdf:type ontology:Q34770 . ?q rdf:type ontology:Q15416 . ?q property:P364 ?p } UNION { ?q property:P364 ?p . ?p rdf:type ontology:Q34770 . ?q rdf:type ontology:Q21114848 } } GROUP BY ?p } . FILTER ( ?k = 1871 ) }
Egyptian hieroglyphs Simplified Chinese Ruthenian Old Church Slavonic Hittite Armenian Galician-Portuguese Old Icelandic Demotic Church Slavonic Traditional Chinese Etruscan Lak Spanish Sardinian language Latin Tibetan language Czech Basque classical Chinese Italian Old Norse language Bokmål Wappo language Nynorsk Sumerian Gaulish Late Old Japanese written Chinese Middle High German Written vernacular Chinese
31
action count
action approx
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type magazine genre
value 1871
[[{'concept': 'television program'}, {'concept': 'magazine genre'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p rdf:type ontology:language . ?q rdf:type ontology:television_program . ?q property:original_language_of_work ?p } UNION { ?q property:original_language_of_work ?p . ?p rdf:type ontology:language . ?q rdf:type ontology:magazine_genre } } GROUP BY ?p } . FILTER ( ?k = 1871 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q277759 Q234460
USER
Which people are the name of the persons who plays a role in approximately 1 book series or texts ?
(c(Q277759)|c(Q234460),P674,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action find_reverse_tuple_counts
relation P674
type Q502895
type Q234460
value 1
[[{'concept': 'Q277759'}, {'concept': 'Q234460'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:Q234460 ) ( ontology:Q277759 ) } . ?w rdf:type ?x } GROUP BY ?k } }
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type book series
action find_reverse_tuple_counts
relation characters
type common name
type text
value 1
[[{'concept': 'book series'}, {'concept': 'text'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:text ) ( ontology:book_series ) } . ?w rdf:type ?x } GROUP BY ?k } }
[]
common name book series text
Q7243 Q5879 Q9181
SYSTEM
Leo Tolstoy, Johann Wolfgang von Goethe, Abraham
Q216362 Q315795 Q744125 Q1353836 Q36724 Q200902 Q10261 Q5879 Q118653 Q5685 Q36591 Q1291267 Q6323112 Q456931 Q830183 Q62788 Q313421 Q460763 Q1338025 Q229702 Q7200 Q84192 Q2412941 Q9077 Q81422 Q3187975 Q662533 Q594805 Q719418 Q991 Q7243 Q315628 Q321166 Q154971 Q76721 Q1394 Q1398 Q7326 Q63639 Q15995718 Q75568 Q1938388 Q7198 Q6184 Q282280 Q229432 Q913 Q8058 Q141791 Q200637 Q43718 Q1281177 Q75090 Q2596433 Q1747004 Q2116944 Q205523 Q230314 Q85393 Q889694 Q297050 Q1774982 Q107626 Q205365 Q8820 Q9181 Q671872 Q83321 Q9960
(c(Q277759)|c(Q234460),P674,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q277759
action find_reverse_tuple_counts
relation P674
type Q502895
type Q234460
value 1
[ANSWERS] are the name of the persons who plays a role in approximately 1 book series or texts
[[{'concept': 'Q277759'}, {'concept': 'Q234460'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:Q234460 ) ( ontology:Q277759 ) } . ?w rdf:type ?x } GROUP BY ?k } }
August von Goethe Bernal Díaz del Castillo Chaerephon Hrothgar Attila the Hun Shem Pythagoras Johann Wolfgang von Goethe August Engelhardt Anton Chekhov Vladimir Nabokov Gundomar I Nahor Sextus Tarquinius Eve Jethro Abel Benjamin Emma Forsayth Ham Alexander Pushkin Maximilian I of Mexico The Fox and the Cat Moses Noah Judith Hrólfr Kraki Jochebed Vasily Rozanov Fyodor Dostoyevsky Leo Tolstoy Cuitláhuac Abihu Carlota of Mexico Godfrey of Bouillon Vladimir Lenin Virgil Hernán Cortés Charlotte Buff Albert Hahl Ottilie von Goethe Miriam Ovid Plotius Tucca Vladimir Solovyov Lucretia Socrates Louis XI of France Moctezuma IIl Japheth Nikolai Gogol Beowulf Adele Schopenhauer Naomi Timon of Athens Wealhþeow Zipporah La Malinche Friedrich Wilhelm Riemer Hygelac Cuauhtémoc Ruth Seth Cain Lucius Varius Rufus Abraham Isaac Giacomo Casanova Ronald Reagan
Leo Tolstoy, Johann Wolfgang von Goethe and Abraham are the name of the persons who plays a role in approximately 1 book series or texts
Leo Tolstoy Johann Wolfgang von Goethe Abraham
action approx
action union
action find_reverse_tuple_counts
relation characters
type common name
type book series
action find_reverse_tuple_counts
relation characters
type common name
type text
value 1
[[{'concept': 'book series'}, {'concept': 'text'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:text ) ( ontology:book_series ) } . ?w rdf:type ?x } GROUP BY ?k } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9181
P1441
Q234460
USER
Which texts are that person present in ?
(Q9181,P1441,c(Q234460))
action filter_type
action find
entity Q9181
relation P1441
type Q234460
['Q9181', 'P1441', {'concept': 'Q234460'}]
SELECT DISTINCT ?y WHERE { resource:Q9181 property:P1441 ?y . ?y rdf:type ontology:Q234460 }
Abraham
action filter_type
action find
entity Abraham
relation present in work
type text
['Abraham', 'present in work', {'concept': 'text'}]
SELECT DISTINCT ?y WHERE { resource:Abraham property:present_in_work ?y . ?y rdf:type ontology:text }
[]
text
Clarification for simple ques.
Q5879
SYSTEM
Did you mean Johann Wolfgang von Goethe ?
Q7243 Q5879 Q9181
(Q7243,P1441,c(Q234460)) (Q5879,P1441,c(Q234460)) (Q9181,P1441,c(Q234460))
[ANSWER]
['Q7243', 'P1441', {'concept': 'Q234460'}] ['Q5879', 'P1441', {'concept': 'Q234460'}] ['Q9181', 'P1441', {'concept': 'Q234460'}]
SELECT DISTINCT ?y WHERE { resource:Q9181 property:P1441 ?y . ?y rdf:type ontology:Q234460 }
Leo Tolstoy Johann Wolfgang von Goethe Abraham
Did you mean Johann Wolfgang von Goethe ?
Johann Wolfgang von Goethe
['Leo Tolstoy', 'present in work', {'concept': 'text'}] ['Johann Wolfgang von Goethe', 'present in work', {'concept': 'text'}] ['Abraham', 'present in work', {'concept': 'text'}]
SELECT DISTINCT ?y WHERE { resource:Abraham property:present_in_work ?y . ?y rdf:type ontology:text }
[]
Simple Question (Coreferenced)
USER
No, I meant Abraham. Could you tell me the answer for that?
(Q9181,P1441,c(Q234460))
Q9181
['Q9181', 'P1441', {'concept': 'Q234460'}]
['Abraham', 'present in work', {'concept': 'text'}]
[]
Q48203 Q9190 Q41490
SYSTEM
Epistle to the Romans, Exodus, Leviticus
Q128620 Q128608 Q9190 Q48203 Q202129 Q41490
(Q9181,P1441,c(Q234460))
action filter_type
action find
entity Q9181
relation P1441
type Q234460
That person are in [ANSWERS]
['Q9181', 'P1441', {'concept': 'Q234460'}]
SELECT DISTINCT ?y WHERE { resource:Q9181 property:P1441 ?y . ?y rdf:type ontology:Q234460 }
Epistle to the Galatians Epistle to the Hebrews Exodus Epistle to the Romans Book of Judith Leviticus
That person are in Epistle to the Romans, Exodus and Leviticus
Epistle to the Romans Exodus Leviticus
action filter_type
action find
entity Abraham
relation present in work
type text
['Abraham', 'present in work', {'concept': 'text'}]
SELECT DISTINCT ?y WHERE { resource:Abraham property:present_in_work ?y . ?y rdf:type ontology:text }
[]