Simple Question (Direct)
Simple Question
Q18211057
P106
Q12737077
USER
What does Elise Stefanik do for a living ?
(Q18211057,P106,c(Q12737077))
action filter_type
action find
entity Q18211057
relation P106
type Q12737077
['Q18211057', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q18211057 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Elise Stefanik
action filter_type
action find
entity Elise Stefanik
relation occupation
type occupation
['Elise Stefanik', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Elise_Stefanik property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q18211057,P106,c(Q12737077))
action filter_type
action find
entity Q18211057
relation P106
type Q12737077
[ANSWER] Elise Stefanik does for a living
['Q18211057', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q18211057 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
politician
Politician Elise Stefanik does for a living
politician
action filter_type
action find
entity Elise Stefanik
relation occupation
type occupation
['Elise Stefanik', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Elise_Stefanik property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18211057
P21
Q290
USER
What is the sex of Elise Stefanik ?
(Q18211057,P21,c(Q290))
action filter_type
action find
entity Q18211057
relation P21
type Q290
['Q18211057', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q18211057 property:P21 ?b }
Elise Stefanik
action filter_type
action find
entity Elise Stefanik
relation gender
type sex
['Elise Stefanik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Elise_Stefanik property:gender ?b }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q18211057,P21,c(Q290))
action filter_type
action find
entity Q18211057
relation P21
type Q290
The sex of Elise Stefanik is the [ANSWER]
['Q18211057', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q18211057 property:P21 ?b }
female
The sex of Elise Stefanik is the female
female
action filter_type
action find
entity Elise Stefanik
relation gender
type sex
['Elise Stefanik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Elise_Stefanik property:gender ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18211057
P102
Q7210356
USER
Which political organization is Elise Stefanik a member of ?
(Q18211057,P102,c(Q7210356))
action filter_type
action find
entity Q18211057
relation P102
type Q7210356
['Q18211057', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q7210356 . resource:Q18211057 property:P102 ?o }
Elise Stefanik
action filter_type
action find
entity Elise Stefanik
relation member of political party
type political organization
['Elise Stefanik', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_organization . resource:Elise_Stefanik property:member_of_political_party ?o }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q18211057,P102,c(Q7210356))
action filter_type
action find
entity Q18211057
relation P102
type Q7210356
The [ANSWER] is Elise Stefanik a member of
['Q18211057', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q7210356 . resource:Q18211057 property:P102 ?o }
Republican Party
The Republican Party is Elise Stefanik a member of
Republican Party
action filter_type
action find
entity Elise Stefanik
relation member of political party
type political organization
['Elise Stefanik', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_organization . resource:Elise_Stefanik property:member_of_political_party ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7039087
Q7210356
USER
And what about Ninong Ering?
(Q7039087,P102,c(Q7210356))
action filter_type
action find
entity Q7039087
relation P102
type Q7210356
['Q7039087', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q7039087 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Ninong Ering
action filter_type
action find
entity Ninong Ering
relation member of political party
type political organization
['Ninong Ering', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Ninong_Ering property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
political organization
Q10225
SYSTEM
Indian National Congress
Q10225
(Q7039087,P102,c(Q7210356))
action filter_type
action find
entity Q7039087
relation P102
type Q7210356
[ANSWER]
['Q7039087', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q7039087 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Indian National Congress
Indian National Congress
action filter_type
action find
entity Ninong Ering
relation member of political party
type political organization
['Ninong Ering', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Ninong_Ering property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7039087
P39
Q12737077
USER
What were the positions held by that person ?
(Q10225,P39,c(Q12737077))
action filter_type
action find
entity Q7039087
relation P39
type Q12737077
['Q10225', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q7039087 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Ninong Ering
action filter_type
action find
entity Ninong Ering
relation position held
type occupation
['Indian National Congress', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ninong_Ering property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q24456735 Q16556694
SYSTEM
Member of the Arunachal Pradesh Legislative Assembly, member of the Lok Sabha
Q24456735 Q16556694
(Q10225,P39,c(Q12737077))
action filter_type
action find
entity Q7039087
relation P39
type Q12737077
The positions held by that person were [ANSWERS]
['Q10225', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q7039087 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Member of the Arunachal Pradesh Legislative Assembly member of the Lok Sabha
The positions held by that person were Member of the Arunachal Pradesh Legislative Assembly and member of the Lok Sabha
Member of the Arunachal Pradesh Legislative Assembly member of the Lok Sabha
action filter_type
action find
entity Ninong Ering
relation position held
type occupation
['Indian National Congress', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ninong_Ering property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q475760
P9
Q502895
USER
Who have Alhfrith of Deira as thier sibling ?
(Q475760,P9,c(Q502895))
action filter_type
action find
entity Q475760
relation P9
type Q502895
['Q475760', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q475760 property:P9 ?x . ?x rdf:type ontology:Q502895 }
Alhfrith of Deira
action filter_type
action find
entity Alhfrith of Deira
relation sister
type common name
['Alhfrith of Deira', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Alhfrith_of_Deira property:sister ?x . ?x rdf:type ontology:common_name }
[]
common name
Q2480751 Q442515
SYSTEM
Ælfflæd of Whitby, Osthryth
Q2480751 Q442515
(Q475760,P9,c(Q502895))
action filter_type
action find
entity Q475760
relation P9
type Q502895
[ANSWERS] have Alhfrith of Deira as thier sibling
['Q475760', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q475760 property:P9 ?x . ?x rdf:type ontology:Q502895 }
Ælfflæd of Whitby Osthryth
Ælfflæd of Whitby and Osthryth have Alhfrith of Deira as thier sibling
Ælfflæd of Whitby Osthryth
action filter_type
action find
entity Alhfrith of Deira
relation sister
type common name
['Alhfrith of Deira', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Alhfrith_of_Deira property:sister ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2480751 Q442515
P9
Q502895
USER
Which people had Ælfflæd of Whitby and Osthryth as sister ?
(c(Q502895),P9,Q2480751) (c(Q502895),P9,Q442515)
action union
action filter_type
action find_reverse
entity Q2480751
relation P9
type Q502895
action filter_type
action find_reverse
entity Q442515
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q2480751'] [{'concept': 'Q502895'}, 'P9', 'Q442515']
SELECT DISTINCT ?s WHERE { { ?s property:P9 resource:Q2480751 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P9 resource:Q442515 . ?s rdf:type ontology:Q502895 } }
Ælfflæd of Whitby Osthryth
action union
action filter_type
action find_reverse
entity Ælfflæd of Whitby
relation sister
type common name
action filter_type
action find_reverse
entity Osthryth
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Ælfflæd of Whitby'] [{'concept': 'common name'}, 'sister', 'Osthryth']
SELECT DISTINCT ?s WHERE { { ?s property:sister resource:Ælfflæd_of_Whitby . ?s rdf:type ontology:common_name } UNION { ?s property:sister resource:Osthryth . ?s rdf:type ontology:common_name } }
[]
common name
Q737618 Q737618 Q442515
SYSTEM
Osthryth for 3rd, Aldfrith for 1st, 2nd
Q271386 Q737618 Q453676 Q442515 Q475760 Q271386 Q737618 Q453676 Q475760 Q2480751
(c(Q502895),P9,Q2480751) (c(Q502895),P9,Q442515)
action union
action filter_type
action find_reverse
entity Q2480751
relation P9
type Q502895
action filter_type
action find_reverse
entity Q442515
relation P9
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P9', 'Q2480751'] [{'concept': 'Q502895'}, 'P9', 'Q442515']
SELECT DISTINCT ?s WHERE { { ?s property:P9 resource:Q2480751 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P9 resource:Q442515 . ?s rdf:type ontology:Q502895 } }
Ælfwine of Deira Aldfrith Ecgfrith of Northumbria Osthryth Alhfrith of Deira Ælfwine of Deira Aldfrith Ecgfrith of Northumbria Alhfrith of Deira Ælfflæd of Whitby
Aldfrith, Aldfrith and Osthryth had Ælfflæd of Whitby and Osthryth as sister
Aldfrith Aldfrith Osthryth
action union
action filter_type
action find_reverse
entity Ælfflæd of Whitby
relation sister
type common name
action filter_type
action find_reverse
entity Osthryth
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Ælfflæd of Whitby'] [{'concept': 'common name'}, 'sister', 'Osthryth']
SELECT DISTINCT ?s WHERE { { ?s property:sister resource:Ælfflæd_of_Whitby . ?s rdf:type ontology:common_name } UNION { ?s property:sister resource:Osthryth . ?s rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q737618
P40
Q502895
USER
Whose child are that one ?
(c(Q502895),P40,Q737618)
action filter_type
action find_reverse
entity Q737618
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q737618']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q737618 . ?e rdf:type ontology:Q502895 }
Aldfrith
action filter_type
action find_reverse
entity Aldfrith
relation child
type common name
[{'concept': 'common name'}, 'child', 'Aldfrith']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Aldfrith . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q442515
SYSTEM
Did you mean Osthryth ?
Q737618 Q737618 Q442515
(c(Q502895),P40,Q737618) (c(Q502895),P40,Q737618) (c(Q502895),P40,Q442515)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q737618'] [{'concept': 'Q502895'}, 'P40', 'Q737618'] [{'concept': 'Q502895'}, 'P40', 'Q442515']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q737618 . ?e rdf:type ontology:Q502895 }
Aldfrith Aldfrith Osthryth
Did you mean Osthryth ?
Osthryth
[{'concept': 'common name'}, 'child', 'Aldfrith'] [{'concept': 'common name'}, 'child', 'Aldfrith'] [{'concept': 'common name'}, 'child', 'Osthryth']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Aldfrith . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Aldfrith. Could you tell me the answer for that?
(c(Q502895),P40,Q737618)
Q737618
[{'concept': 'Q502895'}, 'P40', 'Q737618']
[{'concept': 'common name'}, 'child', 'Aldfrith']
[]
Q468847 Q5511691
SYSTEM
Oswiu of Northumbria, Fín
Q5511691 Q468847
(c(Q502895),P40,Q737618)
action filter_type
action find_reverse
entity Q737618
relation P40
type Q502895
[ANSWERS] are that one
[{'concept': 'Q502895'}, 'P40', 'Q737618']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q737618 . ?e rdf:type ontology:Q502895 }
Fín Oswiu of Northumbria
Oswiu of Northumbria and Fín are that one
Oswiu of Northumbria Fín
action filter_type
action find_reverse
entity Aldfrith
relation child
type common name
[{'concept': 'common name'}, 'child', 'Aldfrith']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Aldfrith . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 2587 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2587
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { FILTER ( ?m >= 2587 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?g } }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2587
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { FILTER ( ?m >= 2587 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?g } }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2587
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { FILTER ( ?m >= 2587 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?g } }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2587
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { FILTER ( ?m >= 2587 ) . { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?g } }
[]