Simple Question (Direct)
Simple Question
Q14467251
P162
Q502895
USER
Who are the creators of Before I Go to Sleep ?
(Q14467251,P162,c(Q502895))
action filter_type
action find
entity Q14467251
relation P162
type Q502895
['Q14467251', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q14467251 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Before I Go to Sleep
action filter_type
action find
entity Before I Go to Sleep
relation producer
type common name
['Before I Go to Sleep', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Before_I_Go_to_Sleep property:producer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q662934 Q56005
SYSTEM
Avi Lerner, Ridley Scott
Q662934 Q56005
(Q14467251,P162,c(Q502895))
action filter_type
action find
entity Q14467251
relation P162
type Q502895
The creators of Before I Go to Sleep are Brian [ANSWERS]
['Q14467251', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q14467251 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Avi Lerner Ridley Scott
The creators of Before I Go to Sleep are Brian Avi Lerner and Ridley Scott
Avi Lerner Ridley Scott
action filter_type
action find
entity Before I Go to Sleep
relation producer
type common name
['Before I Go to Sleep', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Before_I_Go_to_Sleep property:producer ?d . ?d rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q662934
P734
Q82799
USER
Who has the surname that person ?
(Q662934,P734,c(Q82799))
action filter_type
action find
entity Q662934
relation P734
type Q82799
['Q662934', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q662934 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Avi Lerner
action filter_type
action find
entity Avi Lerner
relation family name
type name
['Avi Lerner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Avi_Lerner property:family_name ?w . ?w rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q56005
SYSTEM
Did you mean Ridley Scott ?
Q662934 Q56005
(Q662934,P734,c(Q82799)) (Q56005,P734,c(Q82799))
[ANSWER]
['Q662934', 'P734', {'concept': 'Q82799'}] ['Q56005', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q662934 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Avi Lerner Ridley Scott
Did you mean Ridley Scott ?
Ridley Scott
['Avi Lerner', 'family name', {'concept': 'name'}] ['Ridley Scott', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Avi_Lerner property:family_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant Avi Lerner. Could you tell me the answer for that?
(Q662934,P734,c(Q82799))
Q662934
['Q662934', 'P734', {'concept': 'Q82799'}]
['Avi Lerner', 'family name', {'concept': 'name'}]
[]
Q27037241
SYSTEM
Lerner
Q27037241
(Q662934,P734,c(Q82799))
action filter_type
action find
entity Q662934
relation P734
type Q82799
[ANSWER] has the surname that person
['Q662934', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q662934 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Lerner
Lerner has the surname that person
Lerner
action filter_type
action find
entity Avi Lerner
relation family name
type name
['Avi Lerner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Avi_Lerner property:family_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q27037241
P734
Q502895
USER
Who have that name as surname ?
(c(Q502895),P734,Q27037241)
action filter_type
action find_reverse
entity Q27037241
relation P734
type Q502895
[{'concept': 'Q502895'}, 'P734', 'Q27037241']
SELECT DISTINCT ?i WHERE { ?i property:P734 resource:Q27037241 . ?i rdf:type ontology:Q502895 }
Lerner
action filter_type
action find_reverse
entity Lerner
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Lerner']
SELECT DISTINCT ?i WHERE { ?i property:family_name resource:Lerner . ?i rdf:type ontology:common_name }
[]
common name
Q961893 Q85102 Q923927
SYSTEM
Alan Jay Lerner, Gerda Lerner, Jaime Lerner
Q615910 Q923927 Q961893 Q305781 Q4006751 Q26742108 Q527303 Q5523915 Q733997 Q85102 Q3853058 Q1113970 Q719324 Q3094215 Q662934
(c(Q502895),P734,Q27037241)
action filter_type
action find_reverse
entity Q27037241
relation P734
type Q502895
As [ANSWERS] have that name as surname
[{'concept': 'Q502895'}, 'P734', 'Q27037241']
SELECT DISTINCT ?i WHERE { ?i property:P734 resource:Q27037241 . ?i rdf:type ontology:Q502895 }
Sam Lerner Jaime Lerner Alan Jay Lerner Abba P. Lerner Ute Maria Lerner Robin Lerner Michael Lerner Garrett Lerner Salomón Lerner Ghitis Gerda Lerner Max Lerner Nathan Lerner Randy Lerner Gad Lerner Avi Lerner
As Alan Jay Lerner, Gerda Lerner and Jaime Lerner have that name as surname
Alan Jay Lerner Gerda Lerner Jaime Lerner
action filter_type
action find_reverse
entity Lerner
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Lerner']
SELECT DISTINCT ?i WHERE { ?i property:family_name resource:Lerner . ?i rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q27037241
P734 P21
Q502895
USER
Which people have Lerner as surname and are a male ?
AND((c(Q502895),P734,Q27037241), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q27037241
relation P734
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q27037241'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P734 resource:Q27037241 . ?k property:P21 resource:Q6581097 }
male Lerner
action filter_type
action intersection
action find_reverse
entity Lerner
relation family name
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Lerner'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:family_name resource:Lerner . ?k property:gender resource:male }
[]
common name
Q662934 Q1113970 Q305781 Q5523915 Q615910 Q733997 Q3094215 Q719324 Q923927 Q961893
SYSTEM
Some of them are Avi Lerner, Nathan Lerner, Abba P. Lerner, Garrett Lerner, Sam Lerner, Salomón Lerner Ghitis, Gad Lerner, Randy Lerner, Jaime Lerner, Alan Jay Lerner
Q733997 Q923927 Q961893 Q305781 Q527303 Q5523915 Q615910 Q3853058 Q3094215 Q719324 Q1113970 Q662934
AND((c(Q502895),P734,Q27037241), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q27037241
relation P734
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Lerner as surname and are a male
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q27037241'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P734 resource:Q27037241 . ?k property:P21 resource:Q6581097 }
Salomón Lerner Ghitis Jaime Lerner Alan Jay Lerner Abba P. Lerner Michael Lerner Garrett Lerner Sam Lerner Max Lerner Gad Lerner Randy Lerner Nathan Lerner Avi Lerner
Avi Lerner, Nathan Lerner, Abba P. Lerner, Garrett Lerner, Sam Lerner, Salomón Lerner Ghitis, Gad Lerner, Randy Lerner, Jaime Lerner and Alan Jay Lerner have Lerner as surname and are a male
Avi Lerner Nathan Lerner Abba P. Lerner Garrett Lerner Sam Lerner Salomón Lerner Ghitis Gad Lerner Randy Lerner Jaime Lerner Alan Jay Lerner
action filter_type
action intersection
action find_reverse
entity Lerner
relation family name
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Lerner'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:family_name resource:Lerner . ?k property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5219065 Q1113970
P27
Q15617994
USER
Which administrative territories do Nathan Lerner or Daniel Weil belong to ?
OR((Q1113970,P27,c(Q15617994)), (Q5219065,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1113970
relation P27
action find
entity Q5219065
relation P27
type Q15617994
{'OR': [['Q1113970', 'P27', {'concept': 'Q15617994'}], ['Q5219065', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?f ) { ( resource:Q1113970 ) ( resource:Q5219065 ) } . ?f property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Daniel Weil Nathan Lerner
action filter_type
action union
action find
entity Nathan Lerner
relation country of citizenship
action find
entity Daniel Weil
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nathan Lerner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Daniel Weil', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?f ) { ( resource:Nathan_Lerner ) ( resource:Daniel_Weil ) } . ?f property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q414
SYSTEM
United States of America, Argentina
Q30 Q414
OR((Q1113970,P27,c(Q15617994)), (Q5219065,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1113970
relation P27
action find
entity Q5219065
relation P27
type Q15617994
Nathan Lerner or Daniel Weil belong to [ANSWERS]
{'OR': [['Q1113970', 'P27', {'concept': 'Q15617994'}], ['Q5219065', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?f ) { ( resource:Q1113970 ) ( resource:Q5219065 ) } . ?f property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
United States of America Argentina
Nathan Lerner or Daniel Weil belong to United States of America and Argentina
United States of America Argentina
action filter_type
action union
action find
entity Nathan Lerner
relation country of citizenship
action find
entity Daniel Weil
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nathan Lerner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Daniel Weil', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?f ) { ( resource:Nathan_Lerner ) ( resource:Daniel_Weil ) } . ?f property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q30 Q414
P710
Q1190554
USER
Which events have those administrative territories as their participant ?
(c(Q1190554),P710,Q30) (c(Q1190554),P710,Q414)
action filter_type
action find_reverse
entity prev_answer
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q30'] [{'concept': 'Q1190554'}, 'P710', 'Q414']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1190554 . ?f property:P710 ?j . VALUES ( ?j ) { ( resource:Q30 ) ( resource:Q414 ) } }
United States of America Argentina
action filter_type
action find_reverse
entity prev_answer
relation participant
type event
[{'concept': 'event'}, 'participant', 'United States of America'] [{'concept': 'event'}, 'participant', 'Argentina']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:event . ?f property:participant ?j . VALUES ( ?j ) { ( resource:United_States_of_America ) ( resource:Argentina ) } }
[]
event
Q218678 Q16470 Q750567
SYSTEM
North African Campaign, Normandy landings, Spring Offensive
Q714223 Q41894 Q4870748 Q2888379 Q4871421 Q3354826 Q856168 Q1402530 Q1638488 Q4870165 Q4872463 Q4870881 Q1141380 Q2026308 Q4872216 Q1063735 Q3636553 Q4871186 Q1934591 Q1634629 Q2237268 Q2888122 Q3636251 Q128160 Q16470 Q610048 Q504347 Q609030 Q2889960 Q4872357 Q22894201 Q750567 Q218678 Q214456 Q327052 Q4872743 Q5722546 Q4582489 Q4871802 Q4871801 Q4930640
(c(Q1190554),P710,Q30) (c(Q1190554),P710,Q414)
action filter_type
action find_reverse
entity prev_answer
relation P710
type Q1190554
[ANSWERS] have those administrative territories as their participant
[{'concept': 'Q1190554'}, 'P710', 'Q30'] [{'concept': 'Q1190554'}, 'P710', 'Q414']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1190554 . ?f property:P710 ?j . VALUES ( ?j ) { ( resource:Q30 ) ( resource:Q414 ) } }
Battle for Brest Battle of New Orleans Battle of Cieneguilla Battle of Dahaneh Battle of Khaz Oruzgan Operation Red Wings Pastry War Battle of 73 Easting Battle of Monmouth Battle for Jalibah Airfield Battle of Sunset Pass Battle of Do Ab Battle of Wake Island Operation Praying Mantis Battle of Rumaila Second Battle of the Somme Battle of Norfolk Battle of Hampden Battle of North Borneo Battle of Medina Ridge Battle of Umm Qasr Battle of Basra Battle of Wadi Al-Batin Cuban Missile Crisis Normandy landings Battle of Balikpapan Battle of the Philippine Sea Battle of Peleliu Battle of Shewan Battle of Setauket Al-Shaddadi offensive (2016) Spring Offensive North African Campaign Philippine–American War Battle of Aachen Battle of Wireless Ridge Battle of Lomas Valentinas Battle of Mount Tumbledown Battle of Mount Longdon Battle of Mount Harriet Bluff Cove Air Attacks
North African Campaign, Normandy landings and Spring Offensive have those administrative territories as their participant
North African Campaign Normandy landings Spring Offensive
action filter_type
action find_reverse
entity prev_answer
relation participant
type event
[{'concept': 'event'}, 'participant', 'United States of America'] [{'concept': 'event'}, 'participant', 'Argentina']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:event . ?f property:participant ?j . VALUES ( ?j ) { ( resource:United_States_of_America ) ( resource:Argentina ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16470
P361
Q1190554
USER
What are a component of that one ?
(c(Q1190554),P361,Q16470)
action filter_type
action find_reverse
entity Q16470
relation P361
type Q1190554
[{'concept': 'Q1190554'}, 'P361', 'Q16470']
SELECT DISTINCT ?l WHERE { ?l property:P361 resource:Q16470 . ?l rdf:type ontology:Q1190554 }
Normandy landings
action filter_type
action find_reverse
entity Normandy landings
relation part of
type event
[{'concept': 'event'}, 'part of', 'Normandy landings']
SELECT DISTINCT ?l WHERE { ?l property:part_of resource:Normandy_landings . ?l rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q16470
SYSTEM
Did you mean Normandy landings ?
Q218678 Q16470 Q750567
(c(Q1190554),P361,Q218678) (c(Q1190554),P361,Q16470) (c(Q1190554),P361,Q750567)
[ANSWER]
[{'concept': 'Q1190554'}, 'P361', 'Q218678'] [{'concept': 'Q1190554'}, 'P361', 'Q16470'] [{'concept': 'Q1190554'}, 'P361', 'Q750567']
SELECT DISTINCT ?l WHERE { ?l property:P361 resource:Q16470 . ?l rdf:type ontology:Q1190554 }
North African Campaign Normandy landings Spring Offensive
Did you mean Normandy landings ?
Normandy landings
[{'concept': 'event'}, 'part of', 'North African Campaign'] [{'concept': 'event'}, 'part of', 'Normandy landings'] [{'concept': 'event'}, 'part of', 'Spring Offensive']
SELECT DISTINCT ?l WHERE { ?l property:part_of resource:Normandy_landings . ?l rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1190554),P361,Q16470)
[{'concept': 'Q1190554'}, 'P361', 'Q16470']
[{'concept': 'event'}, 'part of', 'Normandy landings']
[]
Q1138519 Q284649 Q1756029
SYSTEM
Sword Beach, Pointe du Hoc, Operation Tonga
Q284649 Q1138519 Q1756029 Q16208804
(c(Q1190554),P361,Q16470)
action filter_type
action find_reverse
entity Q16470
relation P361
type Q1190554
A component of that one are Operation [ANSWERS]
[{'concept': 'Q1190554'}, 'P361', 'Q16470']
SELECT DISTINCT ?l WHERE { ?l property:P361 resource:Q16470 . ?l rdf:type ontology:Q1190554 }
Pointe du Hoc Sword Beach Operation Tonga Battle of Port-en-Bessin
A component of that one are Operation Sword Beach, Pointe du Hoc and Operation Tonga
Sword Beach Pointe du Hoc Operation Tonga
action filter_type
action find_reverse
entity Normandy landings
relation part of
type event
[{'concept': 'event'}, 'part of', 'Normandy landings']
SELECT DISTINCT ?l WHERE { ?l property:part_of resource:Normandy_landings . ?l rdf:type ontology:event }
[]