Simple Question (Direct)
Simple Question
Q910738
P1412
Q34770
USER
Which language can John Hill read ?
(Q910738,P1412,c(Q34770))
action filter_type
action find
entity Q910738
relation P1412
type Q34770
['Q910738', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q910738 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
John Hill
action filter_type
action find
entity John Hill
relation languages spoken, written or signed
type language
['John Hill', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:John_Hill property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q910738,P1412,c(Q34770))
action filter_type
action find
entity Q910738
relation P1412
type Q34770
[ANSWER]
['Q910738', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q910738 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity John Hill
relation languages spoken, written or signed
type language
['John Hill', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:John_Hill property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q910738
P39
Q12737077
USER
What were the positions for which John Hill were appointed ?
(Q910738,P39,c(Q12737077))
action filter_type
action find
entity Q910738
relation P39
type Q12737077
['Q910738', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q910738 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
John Hill
action filter_type
action find
entity John Hill
relation position held
type occupation
['John Hill', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:John_Hill property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q13218630 Q19385767 Q18536527
SYSTEM
United States representative, member of the State Senate of New Jersey, member of the New Jersey General Assembly
Q13218630 Q19385767 Q18536527
(Q910738,P39,c(Q12737077))
action filter_type
action find
entity Q910738
relation P39
type Q12737077
[ANSWERS]
['Q910738', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q910738 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
United States representative member of the State Senate of New Jersey member of the New Jersey General Assembly
United States representative member of the State Senate of New Jersey member of the New Jersey General Assembly
action filter_type
action find
entity John Hill
relation position held
type occupation
['John Hill', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:John_Hill property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18536527
P1001
Q852446
USER
Which US administrative territory comes under the jurisdiction of that occupation ?
(Q18536527,P1001,c(Q852446))
action filter_type
action find
entity Q18536527
relation P1001
type Q852446
['Q18536527', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q852446 . resource:Q18536527 property:P1001 ?k }
member of the New Jersey General Assembly
action filter_type
action find
entity member of the New Jersey General Assembly
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the New Jersey General Assembly', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:member_of_the_New_Jersey_General_Assembly property:applies_to_jurisdiction ?k }
[]
administrative territorial entity of the United States
Clarification for simple ques.
Q13218630
SYSTEM
Did you mean United States representative ?
Q13218630 Q19385767 Q18536527
(Q13218630,P1001,c(Q852446)) (Q19385767,P1001,c(Q852446)) (Q18536527,P1001,c(Q852446))
[ANSWER]
['Q13218630', 'P1001', {'concept': 'Q852446'}] ['Q19385767', 'P1001', {'concept': 'Q852446'}] ['Q18536527', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q852446 . resource:Q18536527 property:P1001 ?k }
United States representative member of the State Senate of New Jersey member of the New Jersey General Assembly
Did you mean United States representative ?
United States representative
['United States representative', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}] ['member of the State Senate of New Jersey', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}] ['member of the New Jersey General Assembly', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:member_of_the_New_Jersey_General_Assembly property:applies_to_jurisdiction ?k }
[]
Simple Question (Coreferenced)
USER
No, I meant member of the New Jersey General Assembly. Could you tell me the answer for that?
(Q18536527,P1001,c(Q852446))
Q18536527
['Q18536527', 'P1001', {'concept': 'Q852446'}]
['member of the New Jersey General Assembly', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
[]
Q1408
SYSTEM
New Jersey
Q1408
(Q18536527,P1001,c(Q852446))
action filter_type
action find
entity Q18536527
relation P1001
type Q852446
[ANSWER]
['Q18536527', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q852446 . resource:Q18536527 property:P1001 ?k }
New Jersey
New Jersey
action filter_type
action find
entity member of the New Jersey General Assembly
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the New Jersey General Assembly', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:member_of_the_New_Jersey_General_Assembly property:applies_to_jurisdiction ?k }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5085579 Q910738
P102
Q7210356
USER
Which political organizations are John Hill and Charlie Summers a member of ?
AND((Q910738,P102,c(Q7210356)), (Q5085579,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q910738
relation P102
action find
entity Q5085579
relation P102
type Q7210356
{'AND': [['Q910738', 'P102', {'concept': 'Q7210356'}], ['Q5085579', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7210356 . resource:Q910738 property:P102 ?y . resource:Q5085579 property:P102 ?y }
Charlie Summers John Hill
action filter_type
action intersection
action find
entity John Hill
relation member of political party
action find
entity Charlie Summers
relation member of political party
type political organization
{'AND': [['John Hill', 'member of political party', {'concept': 'political organization'}], ['Charlie Summers', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_organization . resource:John_Hill property:member_of_political_party ?y . resource:Charlie_Summers property:member_of_political_party ?y }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
AND((Q910738,P102,c(Q7210356)), (Q5085579,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q910738
relation P102
action find
entity Q5085579
relation P102
type Q7210356
[ANSWER]
{'AND': [['Q910738', 'P102', {'concept': 'Q7210356'}], ['Q5085579', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7210356 . resource:Q910738 property:P102 ?y . resource:Q5085579 property:P102 ?y }
Republican Party
Republican Party
action filter_type
action intersection
action find
entity John Hill
relation member of political party
action find
entity Charlie Summers
relation member of political party
type political organization
{'AND': [['John Hill', 'member of political party', {'concept': 'political organization'}], ['Charlie Summers', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_organization . resource:John_Hill property:member_of_political_party ?y . resource:Charlie_Summers property:member_of_political_party ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1408
P17
Q15617994
USER
Which administrative territory is New Jersey present in ?
(Q1408,P17,c(Q15617994))
action filter_type
action find
entity Q1408
relation P17
type Q15617994
['Q1408', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1408 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
New Jersey
action filter_type
action find
entity New Jersey
relation country
type designation for an administrative territorial entity
['New Jersey', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:New_Jersey property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1408,P17,c(Q15617994))
action filter_type
action find
entity Q1408
relation P17
type Q15617994
[ANSWER]
['Q1408', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1408 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity New Jersey
relation country
type designation for an administrative territorial entity
['New Jersey', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:New_Jersey property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5133763
Q15617994
USER
And what about Clinical Hospital Mostar?
(Q5133763,P17,c(Q15617994))
action filter_type
action find
entity Q5133763
relation P17
type Q15617994
['Q5133763', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q5133763 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Clinical Hospital Mostar
action filter_type
action find
entity Clinical Hospital Mostar
relation country
type designation for an administrative territorial entity
['Clinical Hospital Mostar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Clinical_Hospital_Mostar property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q225
SYSTEM
Bosnia and Herzegovina
Q225
(Q5133763,P17,c(Q15617994))
action filter_type
action find
entity Q5133763
relation P17
type Q15617994
[ANSWER]
['Q5133763', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q5133763 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Bosnia and Herzegovina
Bosnia and Herzegovina
action filter_type
action find
entity Clinical Hospital Mostar
relation country
type designation for an administrative territorial entity
['Clinical Hospital Mostar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Clinical_Hospital_Mostar property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]