Simple Question (Direct)
Simple Question
Q7255900
P26
Q502895
USER
Who is married to Sona Mohapatra ?
(Q7255900,P26,c(Q502895))
action filter_type
action find
entity Q7255900
relation P26
type Q502895
['Q7255900', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q7255900 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Sona Mohapatra
action filter_type
action find
entity Sona Mohapatra
relation spouse
type common name
['Sona Mohapatra', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Sona_Mohapatra property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q6098766
SYSTEM
Ram Sampath
Q6098766
(Q7255900,P26,c(Q502895))
action filter_type
action find
entity Q7255900
relation P26
type Q502895
[ANSWER] is married to Sona Mohapatra
['Q7255900', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q7255900 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Ram Sampath
Ram Sampath is married to Sona Mohapatra
Ram Sampath
action filter_type
action find
entity Sona Mohapatra
relation spouse
type common name
['Sona Mohapatra', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Sona_Mohapatra property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6098766
P175
Q7725634
USER
Which literary work performed that person ?
(c(Q7725634),P175,Q6098766)
action filter_type
action find_reverse
entity Q6098766
relation P175
type Q7725634
[{'concept': 'Q7725634'}, 'P175', 'Q6098766']
SELECT DISTINCT ?q WHERE { ?q property:P175 resource:Q6098766 . ?q rdf:type ontology:Q7725634 }
Ram Sampath
action filter_type
action find_reverse
entity Ram Sampath
relation performer
type literary work
[{'concept': 'literary work'}, 'performer', 'Ram Sampath']
SELECT DISTINCT ?q WHERE { ?q property:performer resource:Ram_Sampath . ?q rdf:type ontology:literary_work }
[]
literary work
Q4900467
SYSTEM
Bhaag D.K. Bose
Q4900467
(c(Q7725634),P175,Q6098766)
action filter_type
action find_reverse
entity Q6098766
relation P175
type Q7725634
[ANSWER] performed that person
[{'concept': 'Q7725634'}, 'P175', 'Q6098766']
SELECT DISTINCT ?q WHERE { ?q property:P175 resource:Q6098766 . ?q rdf:type ontology:Q7725634 }
Bhaag D.K. Bose
Bhaag D.K. Bose performed that person
Bhaag D.K. Bose
action filter_type
action find_reverse
entity Ram Sampath
relation performer
type literary work
[{'concept': 'literary work'}, 'performer', 'Ram Sampath']
SELECT DISTINCT ?q WHERE { ?q property:performer resource:Ram_Sampath . ?q rdf:type ontology:literary_work }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q208681 Q6098766
P175
Q7725634
USER
Or Kris Kristofferson?
OR((c(Q7725634),P175,Q6098766), (c(Q7725634),P175,Q208681))
action filter_type
action union
action find_reverse
entity Q6098766
relation P175
action find_reverse
entity Q208681
relation P175
type Q7725634
{'OR': [[{'concept': 'Q7725634'}, 'P175', 'Q6098766'], [{'concept': 'Q7725634'}, 'P175', 'Q208681']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P175 resource:Q6098766 } UNION { ?j property:P175 resource:Q208681 } } . ?j rdf:type ontology:Q7725634 }
Kris Kristofferson Ram Sampath
action filter_type
action union
action find_reverse
entity Ram Sampath
relation performer
action find_reverse
entity Kris Kristofferson
relation performer
type literary work
{'OR': [[{'concept': 'literary work'}, 'performer', 'Ram Sampath'], [{'concept': 'literary work'}, 'performer', 'Kris Kristofferson']]}
SELECT DISTINCT ?j WHERE { { { ?j property:performer resource:Ram_Sampath } UNION { ?j property:performer resource:Kris_Kristofferson } } . ?j rdf:type ontology:literary_work }
[]
literary work
Q1415217 Q12715406 Q4900467
SYSTEM
Why Me, Help Me Make It Through the Night, Bhaag D.K. Bose
Q1415217 Q12715406 Q4900467
OR((c(Q7725634),P175,Q6098766), (c(Q7725634),P175,Q208681))
action filter_type
action union
action find_reverse
entity Q6098766
relation P175
action find_reverse
entity Q208681
relation P175
type Q7725634
[ANSWERS]
{'OR': [[{'concept': 'Q7725634'}, 'P175', 'Q6098766'], [{'concept': 'Q7725634'}, 'P175', 'Q208681']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P175 resource:Q6098766 } UNION { ?j property:P175 resource:Q208681 } } . ?j rdf:type ontology:Q7725634 }
Why Me Help Me Make It Through the Night Bhaag D.K. Bose
Why Me Help Me Make It Through the Night Bhaag D.K. Bose
action filter_type
action union
action find_reverse
entity Ram Sampath
relation performer
action find_reverse
entity Kris Kristofferson
relation performer
type literary work
{'OR': [[{'concept': 'literary work'}, 'performer', 'Ram Sampath'], [{'concept': 'literary work'}, 'performer', 'Kris Kristofferson']]}
SELECT DISTINCT ?j WHERE { { { ?j property:performer resource:Ram_Sampath } UNION { ?j property:performer resource:Kris_Kristofferson } } . ?j rdf:type ontology:literary_work }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P175
Q502895
USER
How many people were performed by that literary work ?
(Q4900467,P175,c(Q502895))
['Q4900467', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q4900467 property:Q16010345 ?z . ?z rdf:type ontology:Q502895 }
['Bhaag D.K. Bose', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bhaag_D.K._Bose property:performer ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q4900467
SYSTEM
Did you mean Bhaag D.K. Bose ?
(Q1415217,P175,c(Q502895)) (Q12715406,P175,c(Q502895)) (Q4900467,P175,c(Q502895))
[ANSWER]
['Q1415217', 'P175', {'concept': 'Q502895'}] ['Q12715406', 'P175', {'concept': 'Q502895'}] ['Q4900467', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q4900467 property:Q16010345 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Bhaag D.K. Bose ?
Bhaag D.K. Bose
['Why Me', 'performer', {'concept': 'common name'}] ['Help Me Make It Through the Night', 'performer', {'concept': 'common name'}] ['Bhaag D.K. Bose', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bhaag_D.K._Bose property:performer ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q4900467,P175,c(Q502895))
['Q4900467', 'P175', {'concept': 'Q502895'}]
['Bhaag D.K. Bose', 'performer', {'concept': 'common name'}]
[]
SYSTEM
1
Q6098766
(Q4900467,P175,c(Q502895))
[ANSWER]
['Q4900467', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q4900467 property:Q16010345 ?z . ?z rdf:type ontology:Q502895 }
Ram Sampath
1
['Bhaag D.K. Bose', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bhaag_D.K._Bose property:performer ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7255900 Q2326609
P26
Q502895
USER
How many people are married to Sona Mohapatra or Ramona ?
(c(Q502895),P26,Q7255900) (c(Q502895),P26,Q2326609)
action count
action union
action filter_type
action find_reverse
entity Q7255900
relation P26
type Q502895
action filter_type
action find_reverse
entity Q2326609
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q7255900'] [{'concept': 'Q502895'}, 'P26', 'Q2326609']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { VALUES ( ?z ) { ( resource:Q2326609 ) ( resource:Q7255900 ) } . ?b property:P26 ?z }
Sona Mohapatra Ramona
action count
action union
action filter_type
action find_reverse
entity Sona Mohapatra
relation spouse
type common name
action filter_type
action find_reverse
entity Ramona
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Sona Mohapatra'] [{'concept': 'common name'}, 'spouse', 'Ramona']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { VALUES ( ?z ) { ( resource:Ramona ) ( resource:Sona_Mohapatra ) } . ?b property:spouse ?z }
[]
common name
SYSTEM
2
Q18378545 Q6098766
(c(Q502895),P26,Q7255900) (c(Q502895),P26,Q2326609)
action count
action union
action filter_type
action find_reverse
entity Q7255900
relation P26
type Q502895
action filter_type
action find_reverse
entity Q2326609
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q7255900'] [{'concept': 'Q502895'}, 'P26', 'Q2326609']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { VALUES ( ?z ) { ( resource:Q2326609 ) ( resource:Q7255900 ) } . ?b property:P26 ?z }
Jerry Kelsh Ram Sampath
2
action count
action union
action filter_type
action find_reverse
entity Sona Mohapatra
relation spouse
type common name
action filter_type
action find_reverse
entity Ramona
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Sona Mohapatra'] [{'concept': 'common name'}, 'spouse', 'Ramona']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { VALUES ( ?z ) { ( resource:Ramona ) ( resource:Sona_Mohapatra ) } . ?b property:spouse ?z }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q7725634 Q386724
USER
How many works are set up by exactly 2 literary works ?
(c(Q386724),P1445,c(Q7725634))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
value 2
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?w ) WHERE { ?i rdf:type ontology:Q386724 . ?p rdf:type ontology:Q7725634 . ?i property:P1445 ?p } GROUP BY ?i } . FILTER ( ?w = 2 ) }
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type literary work
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?w ) WHERE { ?i rdf:type ontology:work . ?p rdf:type ontology:literary_work . ?i property:fictional_universe_described_in ?p } GROUP BY ?i } . FILTER ( ?w = 2 ) }
[]
literary work work
SYSTEM
1
Q384426
(c(Q386724),P1445,c(Q7725634))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
value 2
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?w ) WHERE { ?i rdf:type ontology:Q386724 . ?p rdf:type ontology:Q7725634 . ?i property:P1445 ?p } GROUP BY ?i } . FILTER ( ?w = 2 ) }
Pirates of the Caribbean
1
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type literary work
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?w ) WHERE { ?i rdf:type ontology:work . ?p rdf:type ontology:literary_work . ?i property:fictional_universe_described_in ?p } GROUP BY ?i } . FILTER ( ?w = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19049036 Q4900467
P175 P921
Q502895
USER
Which people did Bhaag D.K. Bose perform or were discussed in Mitchell, William (1811-1878) (DNB00) ?
OR((Q4900467,P175,c(Q502895)), (Q19049036,P921,c(Q502895)))
action filter_type
action union
action find
entity Q4900467
relation P175
action find
entity Q19049036
relation P921
type Q502895
{'OR': [['Q4900467', 'P175', {'concept': 'Q502895'}], ['Q19049036', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q4900467 property:P175 ?r } UNION { resource:Q19049036 property:P921 ?r } } . ?r rdf:type ontology:Q502895 }
Mitchell, William (1811-1878) (DNB00) Bhaag D.K. Bose
action filter_type
action union
action find
entity Bhaag D.K. Bose
relation performer
action find
entity Mitchell, William (1811-1878) (DNB00)
relation main subject
type common name
{'OR': [['Bhaag D.K. Bose', 'performer', {'concept': 'common name'}], ['Mitchell, William (1811-1878) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Bhaag_D.K._Bose property:performer ?r } UNION { resource:Mitchell,_William_(1811-1878)_(DNB00) property:main_subject ?r } } . ?r rdf:type ontology:common_name }
[]
common name
Q6098766 Q18546969
SYSTEM
Ram Sampath, William Mitchell
Q6098766 Q18546969
OR((Q4900467,P175,c(Q502895)), (Q19049036,P921,c(Q502895)))
action filter_type
action union
action find
entity Q4900467
relation P175
action find
entity Q19049036
relation P921
type Q502895
[ANSWERS] did Bhaag D.K. Bose perform or were discussed in Mitchell, William (1811-1878) (DNB00)
{'OR': [['Q4900467', 'P175', {'concept': 'Q502895'}], ['Q19049036', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q4900467 property:P175 ?r } UNION { resource:Q19049036 property:P921 ?r } } . ?r rdf:type ontology:Q502895 }
Ram Sampath William Mitchell
Ram Sampath and William Mitchell did Bhaag D.K. Bose perform or were discussed in Mitchell, William (1811-1878) (DNB00)
Ram Sampath William Mitchell
action filter_type
action union
action find
entity Bhaag D.K. Bose
relation performer
action find
entity Mitchell, William (1811-1878) (DNB00)
relation main subject
type common name
{'OR': [['Bhaag D.K. Bose', 'performer', {'concept': 'common name'}], ['Mitchell, William (1811-1878) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Bhaag_D.K._Bose property:performer ?r } UNION { resource:Mitchell,_William_(1811-1878)_(DNB00) property:main_subject ?r } } . ?r rdf:type ontology:common_name }
[]