Simple Question (Direct)
Simple Question
Q6241128
P69
Q3918
USER
Which universities were John J. Lentz educated at ?
(Q6241128,P69,c(Q3918))
action filter_type
action find
entity Q6241128
relation P69
type Q3918
['Q6241128', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?x WHERE { resource:Q6241128 property:P69 ?x . ?x rdf:type ontology:Q3918 }
John J. Lentz
action filter_type
action find
entity John J. Lentz
relation educated at
type university
['John J. Lentz', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?x WHERE { resource:John_J._Lentz property:educated_at ?x . ?x rdf:type ontology:university }
[]
university
Q230492 Q1149089
SYSTEM
University of Michigan, Columbia Law School
Q230492 Q1149089
(Q6241128,P69,c(Q3918))
action filter_type
action find
entity Q6241128
relation P69
type Q3918
John J. Lentz were educated at [ANSWERS]
['Q6241128', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?x WHERE { resource:Q6241128 property:P69 ?x . ?x rdf:type ontology:Q3918 }
University of Michigan Columbia Law School
John J. Lentz were educated at University of Michigan and Columbia Law School
University of Michigan Columbia Law School
action filter_type
action find
entity John J. Lentz
relation educated at
type university
['John J. Lentz', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?x WHERE { resource:John_J._Lentz property:educated_at ?x . ?x rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6241128
P106
Q28640
USER
What does John J. Lentz do for a living ?
(Q6241128,P106,c(Q28640))
action filter_type
action find
entity Q6241128
relation P106
type Q28640
['Q6241128', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?n WHERE { resource:Q6241128 property:P106 ?n . ?n rdf:type ontology:Q28640 }
John J. Lentz
action filter_type
action find
entity John J. Lentz
relation occupation
type profession
['John J. Lentz', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?n WHERE { resource:John_J._Lentz property:occupation ?n . ?n rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q6241128,P106,c(Q28640))
action filter_type
action find
entity Q6241128
relation P106
type Q28640
John J. Lentz does a [ANSWER] for a living
['Q6241128', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?n WHERE { resource:Q6241128 property:P106 ?n . ?n rdf:type ontology:Q28640 }
lawyer
John J. Lentz does a lawyer for a living
lawyer
action filter_type
action find
entity John J. Lentz
relation occupation
type profession
['John J. Lentz', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?n WHERE { resource:John_J._Lentz property:occupation ?n . ?n rdf:type ontology:profession }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3187368
Q28640
USER
And how about Joël Brisse?
(Q3187368,P106,c(Q28640))
action filter_type
action find
entity Q3187368
relation P106
type Q28640
['Q3187368', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?e WHERE { resource:Q3187368 property:P106 ?e . ?e rdf:type ontology:Q28640 }
Joël Brisse
action filter_type
action find
entity Joël Brisse
relation occupation
type profession
['Joël Brisse', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?e WHERE { resource:Joël_Brisse property:occupation ?e . ?e rdf:type ontology:profession }
[]
profession
Q2526255
SYSTEM
film director
Q2526255
(Q3187368,P106,c(Q28640))
action filter_type
action find
entity Q3187368
relation P106
type Q28640
[ANSWER]
['Q3187368', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?e WHERE { resource:Q3187368 property:P106 ?e . ?e rdf:type ontology:Q28640 }
film director
film director
action filter_type
action find
entity Joël Brisse
relation occupation
type profession
['Joël Brisse', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?e WHERE { resource:Joël_Brisse property:occupation ?e . ?e rdf:type ontology:profession }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P355
Q28640 Q4830453
USER
Which business enterprises are max number of professions the subsidiary of ?
(c(Q4830453),P355,c(Q28640))
action argmax
action find_tuple_counts
relation P355
type Q4830453
type Q28640
[{'concept': 'Q4830453'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?v ) WHERE { ?w property:P355 ?t . ?w rdf:type ontology:Q4830453 . ?t rdf:type ontology:Q28640 } GROUP BY ?w } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?n ) WHERE { ?g rdf:type ontology:Q4830453 . ?p rdf:type ontology:Q28640 . ?g property:P355 ?p } GROUP BY ?g } }
action argmax
action find_tuple_counts
relation subsidiary
type business enterprise
type profession
[{'concept': 'business enterprise'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?v ) WHERE { ?w property:subsidiary ?t . ?w rdf:type ontology:business_enterprise . ?t rdf:type ontology:profession } GROUP BY ?w } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?n ) WHERE { ?g rdf:type ontology:business_enterprise . ?p rdf:type ontology:profession . ?g property:subsidiary ?p } GROUP BY ?g } }
[]
profession business enterprise
Q1457152 Q19604369
SYSTEM
Sega Sammy Holdings, Columbus Nova
Q1457152 Q19604369
(c(Q4830453),P355,c(Q28640))
action argmax
action find_tuple_counts
relation P355
type Q4830453
type Q28640
[ANSWERS] are max number of professions the subsidiary of
[{'concept': 'Q4830453'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?v ) WHERE { ?w property:P355 ?t . ?w rdf:type ontology:Q4830453 . ?t rdf:type ontology:Q28640 } GROUP BY ?w } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?n ) WHERE { ?g rdf:type ontology:Q4830453 . ?p rdf:type ontology:Q28640 . ?g property:P355 ?p } GROUP BY ?g } }
Sega Sammy Holdings Columbus Nova
Sega Sammy Holdings and Columbus Nova are max number of professions the subsidiary of
Sega Sammy Holdings Columbus Nova
action argmax
action find_tuple_counts
relation subsidiary
type business enterprise
type profession
[{'concept': 'business enterprise'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?v ) WHERE { ?w property:subsidiary ?t . ?w rdf:type ontology:business_enterprise . ?t rdf:type ontology:profession } GROUP BY ?w } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?n ) WHERE { ?g rdf:type ontology:business_enterprise . ?p rdf:type ontology:profession . ?g property:subsidiary ?p } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2599 Q2526255
P361
Q16334295
USER
Which groups of humans are film director or Paul McCartney a portion of ?
OR((Q2526255,P361,c(Q16334295)), (Q2599,P361,c(Q16334295)))
action filter_type
action union
action find
entity Q2526255
relation P361
action find
entity Q2599
relation P361
type Q16334295
{'OR': [['Q2526255', 'P361', {'concept': 'Q16334295'}], ['Q2599', 'P361', {'concept': 'Q16334295'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q16334295 . { { resource:Q2526255 property:P361 ?m } UNION { resource:Q2599 property:P361 ?m } } }
Paul McCartney film director
action filter_type
action union
action find
entity film director
relation part of
action find
entity Paul McCartney
relation part of
type group of humans
{'OR': [['film director', 'part of', {'concept': 'group of humans'}], ['Paul McCartney', 'part of', {'concept': 'group of humans'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:group_of_humans . { { resource:film_director property:part_of ?m } UNION { resource:Paul_McCartney property:part_of ?m } } }
[]
group of humans
Q506702 Q239177
SYSTEM
film crew, Lennon–McCartney
Q506702 Q239177
OR((Q2526255,P361,c(Q16334295)), (Q2599,P361,c(Q16334295)))
action filter_type
action union
action find
entity Q2526255
relation P361
action find
entity Q2599
relation P361
type Q16334295
[ANSWERS] are film director or Paul McCartney a portion of
{'OR': [['Q2526255', 'P361', {'concept': 'Q16334295'}], ['Q2599', 'P361', {'concept': 'Q16334295'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q16334295 . { { resource:Q2526255 property:P361 ?m } UNION { resource:Q2599 property:P361 ?m } } }
film crew Lennon–McCartney
Film crew and Lennon–McCartney are film director or Paul McCartney a portion of
film crew Lennon–McCartney
action filter_type
action union
action find
entity film director
relation part of
action find
entity Paul McCartney
relation part of
type group of humans
{'OR': [['film director', 'part of', {'concept': 'group of humans'}], ['Paul McCartney', 'part of', {'concept': 'group of humans'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:group_of_humans . { { resource:film_director property:part_of ?m } UNION { resource:Paul_McCartney property:part_of ?m } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1457152
P123
Q166142
USER
Which applications were released by Sega Sammy Holdings ?
(c(Q166142),P123,Q1457152)
action filter_type
action find_reverse
entity Q1457152
relation P123
type Q166142
[{'concept': 'Q166142'}, 'P123', 'Q1457152']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q166142 . ?m property:P123 resource:Q1457152 }
Sega Sammy Holdings
action filter_type
action find_reverse
entity Sega Sammy Holdings
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'Sega Sammy Holdings']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:application . ?m property:publisher resource:Sega_Sammy_Holdings }
[]
application
Q14622847 Q4661040 Q3480792
SYSTEM
Guilty Gear Xrd, Aa Yakyū Jinsei Itchokusen, Seven Samurai 20XX
Q4661040 Q14622847 Q3480792 Q3282425 Q3280624 Q5209527 Q16955590 Q7038899
(c(Q166142),P123,Q1457152)
action filter_type
action find_reverse
entity Q1457152
relation P123
type Q166142
And [ANSWERS] were released by Sega Sammy Holdings
[{'concept': 'Q166142'}, 'P123', 'Q1457152']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q166142 . ?m property:P123 resource:Q1457152 }
Aa Yakyū Jinsei Itchokusen Guilty Gear Xrd Seven Samurai 20XX Vice: Project Doom Guilty Gear Petit Daioh The Rumble Fish 2 Ninja Crusaders
And Guilty Gear Xrd, Aa Yakyū Jinsei Itchokusen and Seven Samurai 20XX were released by Sega Sammy Holdings
Guilty Gear Xrd Aa Yakyū Jinsei Itchokusen Seven Samurai 20XX
action filter_type
action find_reverse
entity Sega Sammy Holdings
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'Sega Sammy Holdings']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:application . ?m property:publisher resource:Sega_Sammy_Holdings }
[]
Clarification
Simple Question|Single Entity|Indirect
Q14622847
P400
Q241317
USER
What are the computing platforms for which that application were specifically designed ?
(Q14622847,P400,c(Q241317))
action filter_type
action find
entity Q14622847
relation P400
type Q241317
['Q14622847', 'P400', {'concept': 'Q241317'}]
SELECT DISTINCT ?p WHERE { resource:Q14622847 property:P400 ?p . ?p rdf:type ontology:Q241317 }
Guilty Gear Xrd
action filter_type
action find
entity Guilty Gear Xrd
relation platform
type computing platform
['Guilty Gear Xrd', 'platform', {'concept': 'computing platform'}]
SELECT DISTINCT ?p WHERE { resource:Guilty_Gear_Xrd property:platform ?p . ?p rdf:type ontology:computing_platform }
[]
computing platform
Clarification for simple ques.
Q4661040
SYSTEM
Did you mean Aa Yakyū Jinsei Itchokusen ?
Q14622847 Q4661040 Q3480792
(Q14622847,P400,c(Q241317)) (Q4661040,P400,c(Q241317)) (Q3480792,P400,c(Q241317))
[ANSWER]
['Q14622847', 'P400', {'concept': 'Q241317'}] ['Q4661040', 'P400', {'concept': 'Q241317'}] ['Q3480792', 'P400', {'concept': 'Q241317'}]
SELECT DISTINCT ?p WHERE { resource:Q14622847 property:P400 ?p . ?p rdf:type ontology:Q241317 }
Guilty Gear Xrd Aa Yakyū Jinsei Itchokusen Seven Samurai 20XX
Did you mean Aa Yakyū Jinsei Itchokusen ?
Aa Yakyū Jinsei Itchokusen
['Guilty Gear Xrd', 'platform', {'concept': 'computing platform'}] ['Aa Yakyū Jinsei Itchokusen', 'platform', {'concept': 'computing platform'}] ['Seven Samurai 20XX', 'platform', {'concept': 'computing platform'}]
SELECT DISTINCT ?p WHERE { resource:Guilty_Gear_Xrd property:platform ?p . ?p rdf:type ontology:computing_platform }
[]
Simple Question (Coreferenced)
USER
No, I meant Guilty Gear Xrd. Could you tell me the answer for that?
(Q14622847,P400,c(Q241317))
Q14622847
['Q14622847', 'P400', {'concept': 'Q241317'}]
['Guilty Gear Xrd', 'platform', {'concept': 'computing platform'}]
[]
Q10683 Q5014725
SYSTEM
PlayStation 3, PlayStation 4
Q10683 Q5014725
(Q14622847,P400,c(Q241317))
action filter_type
action find
entity Q14622847
relation P400
type Q241317
And [ANSWERS]
['Q14622847', 'P400', {'concept': 'Q241317'}]
SELECT DISTINCT ?p WHERE { resource:Q14622847 property:P400 ?p . ?p rdf:type ontology:Q241317 }
PlayStation 3 PlayStation 4
And PlayStation 3 and PlayStation 4
PlayStation 3 PlayStation 4
action filter_type
action find
entity Guilty Gear Xrd
relation platform
type computing platform
['Guilty Gear Xrd', 'platform', {'concept': 'computing platform'}]
SELECT DISTINCT ?p WHERE { resource:Guilty_Gear_Xrd property:platform ?p . ?p rdf:type ontology:computing_platform }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2515712
P400
Q166142
USER
Were The 11th Hour developed to run on those computing platforms ?
(Q2515712,P400,Q10683) (Q2515712,P400,Q5014725)
action is_in
entity prev_answer
action find
entity Q2515712
relation P400
['Q2515712', 'P400', 'Q10683'] ['Q2515712', 'P400', 'Q5014725']
ASK WHERE { VALUES ( ?m ) { ( resource:Q10683 ) ( resource:Q5014725 ) } . resource:Q2515712 property:P400 ?m }
The 11th Hour
action is_in
entity prev_answer
action find
entity The 11th Hour
relation platform
['The 11th Hour', 'platform', 'PlayStation 3'] ['The 11th Hour', 'platform', 'PlayStation 4']
ASK WHERE { VALUES ( ?m ) { ( resource:PlayStation_3 ) ( resource:PlayStation_4 ) } . resource:The_11th_Hour property:platform ?m }
[]
application
SYSTEM
NO
(Q2515712,P400,Q10683) (Q2515712,P400,Q5014725)
action is_in
entity prev_answer
action find
entity Q2515712
relation P400
[ANSWER]
['Q2515712', 'P400', 'Q10683'] ['Q2515712', 'P400', 'Q5014725']
ASK WHERE { VALUES ( ?m ) { ( resource:Q10683 ) ( resource:Q5014725 ) } . resource:Q2515712 property:P400 ?m }
No
action is_in
entity prev_answer
action find
entity The 11th Hour
relation platform
['The 11th Hour', 'platform', 'PlayStation 3'] ['The 11th Hour', 'platform', 'PlayStation 4']
ASK WHERE { VALUES ( ?m ) { ( resource:PlayStation_3 ) ( resource:PlayStation_4 ) } . resource:The_11th_Hour property:platform ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8663
P276
Q271669
USER
Where is Korean War located ?
(Q8663,P276,c(Q271669))
action filter_type
action find
entity Q8663
relation P276
type Q271669
['Q8663', 'P276', {'concept': 'Q271669'}]
SELECT DISTINCT ?k WHERE { resource:Q8663 property:P276 ?k . ?k rdf:type ontology:Q271669 }
Korean War
action filter_type
action find
entity Korean War
relation location
type landform
['Korean War', 'location', {'concept': 'landform'}]
SELECT DISTINCT ?k WHERE { resource:Korean_War property:location ?k . ?k rdf:type ontology:landform }
[]
landform
Q483134
SYSTEM
Korean Peninsula
Q483134
(Q8663,P276,c(Q271669))
action filter_type
action find
entity Q8663
relation P276
type Q271669
Korean War is located in [ANSWER]
['Q8663', 'P276', {'concept': 'Q271669'}]
SELECT DISTINCT ?k WHERE { resource:Q8663 property:P276 ?k . ?k rdf:type ontology:Q271669 }
Korean Peninsula
Korean War is located in Korean Peninsula
Korean Peninsula
action filter_type
action find
entity Korean War
relation location
type landform
['Korean War', 'location', {'concept': 'landform'}]
SELECT DISTINCT ?k WHERE { resource:Korean_War property:location ?k . ?k rdf:type ontology:landform }
[]