Simple Question (Direct)
Simple Question
Q3821800
P57
Q502895
USER
Who was the director of The Lost City ?
(Q3821800,P57,c(Q502895))
action filter_type
action find
entity Q3821800
relation P57
type Q502895
['Q3821800', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q3821800 property:P57 ?j . ?j rdf:type ontology:Q502895 }
The Lost City
action filter_type
action find
entity The Lost City
relation director
type common name
['The Lost City', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Lost_City property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Q5671917
SYSTEM
Harry Revier
Q5671917
(Q3821800,P57,c(Q502895))
action filter_type
action find
entity Q3821800
relation P57
type Q502895
The director of The Lost City was Sir [ANSWER]
['Q3821800', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q3821800 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Harry Revier
The director of The Lost City was Sir Harry Revier
Harry Revier
action filter_type
action find
entity The Lost City
relation director
type common name
['The Lost City', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Lost_City property:director ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3821800
P161
Q502895
USER
Which people are in The Lost City ?
(Q3821800,P161,c(Q502895))
action filter_type
action find
entity Q3821800
relation P161
type Q502895
['Q3821800', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3821800 property:P161 ?r . ?r rdf:type ontology:Q502895 }
The Lost City
action filter_type
action find
entity The Lost City
relation cast member
type common name
['The Lost City', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:The_Lost_City property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
common name
Q684079 Q390047 Q3184059
SYSTEM
Ralph Lewis, Billy Bletcher, Josef Swickard
Q3679846 Q684079 Q1277973 Q8003836 Q390047 Q3184059 Q6361848 Q3946321
(Q3821800,P161,c(Q502895))
action filter_type
action find
entity Q3821800
relation P161
type Q502895
[ANSWERS] are in The Lost City
['Q3821800', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3821800 property:P161 ?r . ?r rdf:type ontology:Q502895 }
Claudia Dell Ralph Lewis George "Gabby" Hayes William "Stage" Boyd Billy Bletcher Josef Swickard Kane Richmond Sam Baker
Ralph Lewis, Billy Bletcher and Josef Swickard are in The Lost City
Ralph Lewis Billy Bletcher Josef Swickard
action filter_type
action find
entity The Lost City
relation cast member
type common name
['The Lost City', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:The_Lost_City property:cast_member ?r . ?r rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q684079
P734
Q82799
USER
Who is associated with that person ?
(Q684079,P734,c(Q82799))
action filter_type
action find
entity Q684079
relation P734
type Q82799
['Q684079', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q684079 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Ralph Lewis
action filter_type
action find
entity Ralph Lewis
relation family name
type name
['Ralph Lewis', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Ralph_Lewis property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q3184059
SYSTEM
Did you mean Josef Swickard ?
Q684079 Q390047 Q3184059
(Q684079,P734,c(Q82799)) (Q390047,P734,c(Q82799)) (Q3184059,P734,c(Q82799))
[ANSWER]
['Q684079', 'P734', {'concept': 'Q82799'}] ['Q390047', 'P734', {'concept': 'Q82799'}] ['Q3184059', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q684079 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Ralph Lewis Billy Bletcher Josef Swickard
Did you mean Josef Swickard ?
Josef Swickard
['Ralph Lewis', 'family name', {'concept': 'name'}] ['Billy Bletcher', 'family name', {'concept': 'name'}] ['Josef Swickard', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Ralph_Lewis property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant Ralph Lewis. Could you tell me the answer for that?
(Q684079,P734,c(Q82799))
Q684079
['Q684079', 'P734', {'concept': 'Q82799'}]
['Ralph Lewis', 'family name', {'concept': 'name'}]
[]
Q426463
SYSTEM
Lewis
Q426463
(Q684079,P734,c(Q82799))
action filter_type
action find
entity Q684079
relation P734
type Q82799
[ANSWER] is associated with that person
['Q684079', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q684079 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Lewis
Lewis is associated with that person
Lewis
action filter_type
action find
entity Ralph Lewis
relation family name
type name
['Ralph Lewis', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Ralph_Lewis property:family_name ?u . ?u rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q426463 Q1860 Q35470
P407
Q34770
USER
Was Lewis done in English and Elamite language language ?
(Q426463,P407,Q1860) (Q426463,P407,Q35470)
action is_in
entity Q426463
action intersection
action find_reverse
entity Q1860
relation P407
action find_reverse
entity Q35470
relation P407
['Q426463', 'P407', 'Q1860'] ['Q426463', 'P407', 'Q35470']
ASK WHERE { resource:Q426463 property:P407 resource:Q1860 . resource:Q426463 property:P407 resource:Q35470 }
Lewis English Elamite language
action is_in
entity Lewis
action intersection
action find_reverse
entity English
relation language of work or name
action find_reverse
entity Elamite language
relation language of work or name
['Lewis', 'language of work or name', 'English'] ['Lewis', 'language of work or name', 'Elamite language']
ASK WHERE { resource:Lewis property:language_of_work_or_name resource:English . resource:Lewis property:language_of_work_or_name resource:Elamite_language }
[]
language
SYSTEM
YES and NO respectively
(Q426463,P407,Q1860) (Q426463,P407,Q35470)
action is_in
entity Q426463
action intersection
action find_reverse
entity Q1860
relation P407
action find_reverse
entity Q35470
relation P407
[ANSWER]
['Q426463', 'P407', 'Q1860'] ['Q426463', 'P407', 'Q35470']
ASK WHERE { resource:Q426463 property:P407 resource:Q1860 . resource:Q426463 property:P407 resource:Q35470 }
YES and NO respectively
action is_in
entity Lewis
action intersection
action find_reverse
entity English
relation language of work or name
action find_reverse
entity Elamite language
relation language of work or name
['Lewis', 'language of work or name', 'English'] ['Lewis', 'language of work or name', 'Elamite language']
ASK WHERE { resource:Lewis property:language_of_work_or_name resource:English . resource:Lewis property:language_of_work_or_name resource:Elamite_language }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q33875 Q35470
P282
Q2001982
USER
Which notations are the writing systems used for Elamite language or Ojibwe ?
OR((Q35470,P282,c(Q2001982)), (Q33875,P282,c(Q2001982)))
action filter_type
action union
action find
entity Q35470
relation P282
action find
entity Q33875
relation P282
type Q2001982
{'OR': [['Q35470', 'P282', {'concept': 'Q2001982'}], ['Q33875', 'P282', {'concept': 'Q2001982'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q35470 property:P282 ?n } UNION { resource:Q33875 property:P282 ?n } } . ?n rdf:type ontology:Q2001982 }
Ojibwe Elamite language
action filter_type
action union
action find
entity Elamite language
relation writing system
action find
entity Ojibwe
relation writing system
type notation
{'OR': [['Elamite language', 'writing system', {'concept': 'notation'}], ['Ojibwe', 'writing system', {'concept': 'notation'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Elamite_language property:writing_system ?n } UNION { resource:Ojibwe property:writing_system ?n } } . ?n rdf:type ontology:notation }
[]
notation
Q401 Q2479183
SYSTEM
cuneiform, Canadian Aboriginal syllabics
Q401 Q2479183
OR((Q35470,P282,c(Q2001982)), (Q33875,P282,c(Q2001982)))
action filter_type
action union
action find
entity Q35470
relation P282
action find
entity Q33875
relation P282
type Q2001982
[ANSWERS] are the writing systems used for Elamite language or Ojibwe
{'OR': [['Q35470', 'P282', {'concept': 'Q2001982'}], ['Q33875', 'P282', {'concept': 'Q2001982'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q35470 property:P282 ?n } UNION { resource:Q33875 property:P282 ?n } } . ?n rdf:type ontology:Q2001982 }
cuneiform Canadian Aboriginal syllabics
Cuneiform and Canadian Aboriginal syllabics are the writing systems used for Elamite language or Ojibwe
cuneiform Canadian Aboriginal syllabics
action filter_type
action union
action find
entity Elamite language
relation writing system
action find
entity Ojibwe
relation writing system
type notation
{'OR': [['Elamite language', 'writing system', {'concept': 'notation'}], ['Ojibwe', 'writing system', {'concept': 'notation'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Elamite_language property:writing_system ?n } UNION { resource:Ojibwe property:writing_system ?n } } . ?n rdf:type ontology:notation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35308
P407
Q34770 Q82799
USER
Which languages are the languages of work for lesser number of names than Old Irish ?
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q35308
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P407 ?h . ?h rdf:type ontology:Q34770 . ?o rdf:type ontology:Q82799 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p property:P407 resource:Q35308 . ?p rdf:type ontology:Q82799 } } . FILTER ( ?j < ?s ) }
Old Irish
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity Old Irish
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:language_of_work_or_name ?h . ?h rdf:type ontology:language . ?o rdf:type ontology:name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p property:language_of_work_or_name resource:Old_Irish . ?p rdf:type ontology:name } } . FILTER ( ?j < ?s ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q37041 Q25167 Q25164 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q35308
relation P407
type Q82799
[ANSWERS] are the languages of work for lesser number of names than Old Irish
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P407 ?h . ?h rdf:type ontology:Q34770 . ?o rdf:type ontology:Q82799 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p property:P407 resource:Q35308 . ?p rdf:type ontology:Q82799 } } . FILTER ( ?j < ?s ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse classical Chinese Bokmål Nynorsk Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for lesser number of names than Old Irish
Old Egyptian Old Church Slavonic Etruscan
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity Old Irish
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:language_of_work_or_name ?h . ?h rdf:type ontology:language . ?o rdf:type ontology:name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p property:language_of_work_or_name resource:Old_Irish . ?p rdf:type ontology:name } } . FILTER ( ?j < ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P282
Q2001982 Q340169
USER
How many medias adopt exactly 1 notation as the writing system ?
(c(Q340169),P282,c(Q2001982))
action count
action equal
action find_tuple_counts
relation P282
type Q340169
type Q2001982
value 1
[{'concept': 'Q340169'}, 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?y ) WHERE { ?o property:P282 ?u . ?o rdf:type ontology:Q340169 . ?u rdf:type ontology:Q2001982 } GROUP BY ?o } }
action count
action equal
action find_tuple_counts
relation writing system
type media
type notation
value 1
[{'concept': 'media'}, 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?y ) WHERE { ?o property:writing_system ?u . ?o rdf:type ontology:media . ?u rdf:type ontology:notation } GROUP BY ?o } }
[]
notation media
SYSTEM
1
Q279559
(c(Q340169),P282,c(Q2001982))
action count
action equal
action find_tuple_counts
relation P282
type Q340169
type Q2001982
value 1
[ANSWER]
[{'concept': 'Q340169'}, 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?y ) WHERE { ?o property:P282 ?u . ?o rdf:type ontology:Q340169 . ?u rdf:type ontology:Q2001982 } GROUP BY ?o } }
Babylonian Map of the World
1
action count
action equal
action find_tuple_counts
relation writing system
type media
type notation
value 1
[{'concept': 'media'}, 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?y ) WHERE { ?o property:writing_system ?u . ?o rdf:type ontology:media . ?u rdf:type ontology:notation } GROUP BY ?o } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q684079
P27
Q15617994
USER
How many administrative territories are Ralph Lewis a civilian of ?
(Q684079,P27,c(Q15617994))
action count
action filter_type
action find
entity Q684079
relation P27
type Q15617994
['Q684079', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q684079 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Ralph Lewis
action count
action filter_type
action find
entity Ralph Lewis
relation country of citizenship
type designation for an administrative territorial entity
['Ralph Lewis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Ralph_Lewis property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q684079,P27,c(Q15617994))
action count
action filter_type
action find
entity Q684079
relation P27
type Q15617994
[ANSWER]
['Q684079', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q684079 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Ralph Lewis
relation country of citizenship
type designation for an administrative territorial entity
['Ralph Lewis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Ralph_Lewis property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q684079
P26
Q502895
USER
Which person is married to that one ?
action filter_type
action find
entity Q684079
relation P26
type Q502895
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q684079 property:P26 ?j }
Ralph Lewis
action filter_type
action find
entity Ralph Lewis
relation spouse
type common name
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Ralph_Lewis property:spouse ?j }
[]
common name
Q3555709
SYSTEM
Vera Lewis
Q3555709
action filter_type
action find
entity Q684079
relation P26
type Q502895
[ANSWER] is married to that one
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q684079 property:P26 ?j }
Vera Lewis
Vera Lewis is married to that one
Vera Lewis
action filter_type
action find
entity Ralph Lewis
relation spouse
type common name
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Ralph_Lewis property:spouse ?j }
[]