Simple Question (Direct)
Simple Question
Q1969763
P27
Q15617994
USER
Which administrative territory is Tomás Hirsch a civilian of ?
(Q1969763,P27,c(Q15617994))
action filter_type
action find
entity Q1969763
relation P27
type Q15617994
['Q1969763', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1969763 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Tomás Hirsch
action filter_type
action find
entity Tomás Hirsch
relation country of citizenship
type designation for an administrative territorial entity
['Tomás Hirsch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Tomás_Hirsch property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q298
SYSTEM
Chile
Q298
(Q1969763,P27,c(Q15617994))
action filter_type
action find
entity Q1969763
relation P27
type Q15617994
[ANSWER] is Tomás Hirsch a civilian of
['Q1969763', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1969763 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Chile
Chile is Tomás Hirsch a civilian of
Chile
action filter_type
action find
entity Tomás Hirsch
relation country of citizenship
type designation for an administrative territorial entity
['Tomás Hirsch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Tomás_Hirsch property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1969763
P102
Q7210356
USER
Which party does that person belong to ?
(Q298,P102,c(Q7210356))
action filter_type
action find
entity Q1969763
relation P102
type Q7210356
['Q298', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q1969763 property:P102 ?j }
Tomás Hirsch
action filter_type
action find
entity Tomás Hirsch
relation member of political party
type political organization
['Chile', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Tomás_Hirsch property:member_of_political_party ?j }
[]
political organization
Q1312539
SYSTEM
Humanist Party
Q1312539
(Q298,P102,c(Q7210356))
action filter_type
action find
entity Q1969763
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q298', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q1969763 property:P102 ?j }
Humanist Party
That person belongs to Humanist Party
Humanist Party
action filter_type
action find
entity Tomás Hirsch
relation member of political party
type political organization
['Chile', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Tomás_Hirsch property:member_of_political_party ?j }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with approximately 51 political territories or administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 51
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?h = 51 ) }
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 51
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?h = 51 ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 51
[ANSWER] have tactful political relations with approximately 51 political territories or administrative territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?h = 51 ) }
Brazil
Brazil have tactful political relations with approximately 51 political territories or administrative territories
Brazil
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 51
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?h = 51 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q155 Q3311158
P19
Q502895
USER
Was Kleber Romero born at that administrative territory ?
(Q3311158,P19,Q155)
action is_in
entity Q155
action find
entity Q3311158
relation P19
['Q3311158', 'P19', 'Q155']
ASK WHERE { resource:Q3311158 property:P19 resource:Q155 }
Brazil Kleber Romero
action is_in
entity Brazil
action find
entity Kleber Romero
relation place of birth
['Kleber Romero', 'place of birth', 'Brazil']
ASK WHERE { resource:Kleber_Romero property:place_of_birth resource:Brazil }
[]
common name
SYSTEM
YES
(Q3311158,P19,Q155)
action is_in
entity Q155
action find
entity Q3311158
relation P19
[ANSWER]
['Q3311158', 'P19', 'Q155']
ASK WHERE { resource:Q3311158 property:P19 resource:Q155 }
Yes
action is_in
entity Brazil
action find
entity Kleber Romero
relation place of birth
['Kleber Romero', 'place of birth', 'Brazil']
ASK WHERE { resource:Kleber_Romero property:place_of_birth resource:Brazil }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P35
Q502895
USER
Which people are the heads of state of Germany ?
(Q183,P35,c(Q502895))
action filter_type
action find
entity Q183
relation P35
type Q502895
['Q183', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q183 property:P35 ?a . ?a rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Germany property:head_of_state ?a . ?a rdf:type ontology:common_name }
[]
common name
Q2567 Q2571 Q2594
SYSTEM
Richard von Weizsäcker, Walter Scheel, Theodor Heuss
Q2569 Q2594 Q2573 Q2563 Q2571 Q2538 Q2551 Q2567 Q2540 Q2582 Q2542
(Q183,P35,c(Q502895))
action filter_type
action find
entity Q183
relation P35
type Q502895
[ANSWERS] are the heads of state of Germany
['Q183', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q183 property:P35 ?a . ?a rdf:type ontology:Q502895 }
Karl Carstens Theodor Heuss Gustav Heinemann Roman Herzog Walter Scheel Joachim Gauck Johannes Rau Richard von Weizsäcker Christian Wulff Heinrich Lübke Horst Köhler
Richard von Weizsäcker, Walter Scheel and Theodor Heuss are the heads of state of Germany
Richard von Weizsäcker Walter Scheel Theodor Heuss
action filter_type
action find
entity Germany
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Germany property:head_of_state ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2567 Q2571 Q2594
P26
Q502895
USER
Who are the spouse of Richard von Weizsäcker, Walter Scheel and Theodor Heuss ?
(c(Q502895),P26,Q2567) (c(Q502895),P26,Q2571) (c(Q502895),P26,Q2594)
action union
action filter_type
action find
entity Q2567
relation P26
type Q502895
action filter_type
action find
entity Q2571
relation P26
type Q502895
action filter_type
action find
entity Q2594
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q2567'] [{'concept': 'Q502895'}, 'P26', 'Q2571'] [{'concept': 'Q502895'}, 'P26', 'Q2594']
SELECT DISTINCT ?b WHERE { ?r property:P26 ?b . VALUES ( ?r ) { ( resource:Q2567 ) ( resource:Q2571 ) } }
Richard von Weizsäcker Walter Scheel Theodor Heuss
action union
action filter_type
action find
entity Richard von Weizsäcker
relation spouse
type common name
action filter_type
action find
entity Walter Scheel
relation spouse
type common name
action filter_type
action find
entity Theodor Heuss
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Richard von Weizsäcker'] [{'concept': 'common name'}, 'spouse', 'Walter Scheel'] [{'concept': 'common name'}, 'spouse', 'Theodor Heuss']
SELECT DISTINCT ?b WHERE { ?r property:spouse ?b . VALUES ( ?r ) { ( resource:Richard_von_Weizsäcker ) ( resource:Walter_Scheel ) } }
[]
common name
Q77960 Q66805 Q78010
SYSTEM
Marianne von Weizsäcker, Mildred Scheel, Elly Heuss-Knapp
Q77960 Q66805 Q78010
(c(Q502895),P26,Q2567) (c(Q502895),P26,Q2571) (c(Q502895),P26,Q2594)
action union
action filter_type
action find
entity Q2567
relation P26
type Q502895
action filter_type
action find
entity Q2571
relation P26
type Q502895
action filter_type
action find
entity Q2594
relation P26
type Q502895
The spouse of Richard von Weizsäcker , Walter Scheel and Theodor Heuss are born [ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q2567'] [{'concept': 'Q502895'}, 'P26', 'Q2571'] [{'concept': 'Q502895'}, 'P26', 'Q2594']
SELECT DISTINCT ?b WHERE { ?r property:P26 ?b . VALUES ( ?r ) { ( resource:Q2567 ) ( resource:Q2571 ) } }
Marianne von Weizsäcker Mildred Scheel Elly Heuss-Knapp
The spouse of Richard von Weizsäcker , Walter Scheel and Theodor Heuss are born Marianne von Weizsäcker, Mildred Scheel and Elly Heuss-Knapp
Marianne von Weizsäcker Mildred Scheel Elly Heuss-Knapp
action union
action filter_type
action find
entity Richard von Weizsäcker
relation spouse
type common name
action filter_type
action find
entity Walter Scheel
relation spouse
type common name
action filter_type
action find
entity Theodor Heuss
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Richard von Weizsäcker'] [{'concept': 'common name'}, 'spouse', 'Walter Scheel'] [{'concept': 'common name'}, 'spouse', 'Theodor Heuss']
SELECT DISTINCT ?b WHERE { ?r property:spouse ?b . VALUES ( ?r ) { ( resource:Richard_von_Weizsäcker ) ( resource:Walter_Scheel ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q78010
P40
Q502895
USER
Which person has that one as a child ?
(c(Q502895),P40,Q78010)
action filter_type
action find_reverse
entity Q78010
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q78010']
SELECT DISTINCT ?n WHERE { ?n property:P40 resource:Q78010 . ?n rdf:type ontology:Q502895 }
Elly Heuss-Knapp
action filter_type
action find_reverse
entity Elly Heuss-Knapp
relation child
type common name
[{'concept': 'common name'}, 'child', 'Elly Heuss-Knapp']
SELECT DISTINCT ?n WHERE { ?n property:child resource:Elly_Heuss-Knapp . ?n rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q77960
SYSTEM
Did you mean Marianne von Weizsäcker ?
Q77960 Q66805 Q78010
(c(Q502895),P40,Q77960) (c(Q502895),P40,Q66805) (c(Q502895),P40,Q78010)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q77960'] [{'concept': 'Q502895'}, 'P40', 'Q66805'] [{'concept': 'Q502895'}, 'P40', 'Q78010']
SELECT DISTINCT ?n WHERE { ?n property:P40 resource:Q78010 . ?n rdf:type ontology:Q502895 }
Marianne von Weizsäcker Mildred Scheel Elly Heuss-Knapp
Did you mean Marianne von Weizsäcker ?
Marianne von Weizsäcker
[{'concept': 'common name'}, 'child', 'Marianne von Weizsäcker'] [{'concept': 'common name'}, 'child', 'Mildred Scheel'] [{'concept': 'common name'}, 'child', 'Elly Heuss-Knapp']
SELECT DISTINCT ?n WHERE { ?n property:child resource:Elly_Heuss-Knapp . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Elly Heuss-Knapp. Could you tell me the answer for that?
(c(Q502895),P40,Q78010)
Q78010
[{'concept': 'Q502895'}, 'P40', 'Q78010']
[{'concept': 'common name'}, 'child', 'Elly Heuss-Knapp']
[]
Q66332
SYSTEM
Georg Friedrich Knapp
Q66332
(c(Q502895),P40,Q78010)
action filter_type
action find_reverse
entity Q78010
relation P40
type Q502895
[ANSWER] has that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q78010']
SELECT DISTINCT ?n WHERE { ?n property:P40 resource:Q78010 . ?n rdf:type ontology:Q502895 }
Georg Friedrich Knapp
Georg Friedrich Knapp has that one as a child
Georg Friedrich Knapp
action filter_type
action find_reverse
entity Elly Heuss-Knapp
relation child
type common name
[{'concept': 'common name'}, 'child', 'Elly Heuss-Knapp']
SELECT DISTINCT ?n WHERE { ?n property:child resource:Elly_Heuss-Knapp . ?n rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q66332 Q72907 Q6602
P937
Q515
USER
Does that person works at Yangquan and Strasbourg ?
(Q66332,P937,Q72907) (Q66332,P937,Q6602)
action is_in
entity Q66332
action intersection
action find_reverse
entity Q72907
relation P937
action find_reverse
entity Q6602
relation P937
['Q66332', 'P937', 'Q72907'] ['Q66332', 'P937', 'Q6602']
ASK WHERE { resource:Q66332 property:P937 resource:Q6602 . resource:Q66332 property:P937 resource:Q72907 }
Georg Friedrich Knapp Yangquan Strasbourg
action is_in
entity Georg Friedrich Knapp
action intersection
action find_reverse
entity Yangquan
relation work location
action find_reverse
entity Strasbourg
relation work location
['Georg Friedrich Knapp', 'work location', 'Yangquan'] ['Georg Friedrich Knapp', 'work location', 'Strasbourg']
ASK WHERE { resource:Georg_Friedrich_Knapp property:work_location resource:Strasbourg . resource:Georg_Friedrich_Knapp property:work_location resource:Yangquan }
[]
city
SYSTEM
NO and YES respectively
(Q66332,P937,Q72907) (Q66332,P937,Q6602)
action is_in
entity Q66332
action intersection
action find_reverse
entity Q72907
relation P937
action find_reverse
entity Q6602
relation P937
[ANSWER]
['Q66332', 'P937', 'Q72907'] ['Q66332', 'P937', 'Q6602']
ASK WHERE { resource:Q66332 property:P937 resource:Q6602 . resource:Q66332 property:P937 resource:Q72907 }
NO and YES respectively
action is_in
entity Georg Friedrich Knapp
action intersection
action find_reverse
entity Yangquan
relation work location
action find_reverse
entity Strasbourg
relation work location
['Georg Friedrich Knapp', 'work location', 'Yangquan'] ['Georg Friedrich Knapp', 'work location', 'Strasbourg']
ASK WHERE { resource:Georg_Friedrich_Knapp property:work_location resource:Strasbourg . resource:Georg_Friedrich_Knapp property:work_location resource:Yangquan }
[]