Simple Question (Direct)
Simple Question
Q11645
P102
Q7210356
USER
Which party does Cathy Hudgins belong to ?
(Q11645,P102,c(Q7210356))
action filter_type
action find
entity Q11645
relation P102
type Q7210356
['Q11645', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q11645 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Cathy Hudgins
action filter_type
action find
entity Cathy Hudgins
relation member of political party
type political organization
['Cathy Hudgins', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Cathy_Hudgins property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q11645,P102,c(Q7210356))
action filter_type
action find
entity Q11645
relation P102
type Q7210356
Cathy Hudgins belongs to [ANSWER]
['Q11645', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q11645 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Democratic Party
Cathy Hudgins belongs to Democratic Party
Democratic Party
action filter_type
action find
entity Cathy Hudgins
relation member of political party
type political organization
['Cathy Hudgins', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Cathy_Hudgins property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11645
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q29552,P106,c(Q12737077))
action filter_type
action find
entity Q11645
relation P106
type Q12737077
['Q29552', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q11645 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Cathy Hudgins
action filter_type
action find
entity Cathy Hudgins
relation occupation
type occupation
['Democratic Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Cathy_Hudgins property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q29552,P106,c(Q12737077))
action filter_type
action find
entity Q11645
relation P106
type Q12737077
Is [ANSWER] is the profession of that person
['Q29552', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q11645 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
politician
Is politician is the profession of that person
politician
action filter_type
action find
entity Cathy Hudgins
relation occupation
type occupation
['Democratic Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Cathy_Hudgins property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q16206872
P106
Q502895
USER
Does John Bowton have the profession as that occupation ?
(Q16206872,P106,Q82955)
action is_in
entity Q82955
action find
entity Q16206872
relation P106
['Q16206872', 'P106', 'Q82955']
ASK WHERE { resource:Q16206872 property:P106 resource:Q82955 }
politician John Bowton
action is_in
entity politician
action find
entity John Bowton
relation occupation
['John Bowton', 'occupation', 'politician']
ASK WHERE { resource:John_Bowton property:occupation resource:politician }
[]
common name
SYSTEM
YES
(Q16206872,P106,Q82955)
action is_in
entity Q82955
action find
entity Q16206872
relation P106
[ANSWER]
['Q16206872', 'P106', 'Q82955']
ASK WHERE { resource:Q16206872 property:P106 resource:Q82955 }
Yes
action is_in
entity politician
action find
entity John Bowton
relation occupation
['John Bowton', 'occupation', 'politician']
ASK WHERE { resource:John_Bowton property:occupation resource:politician }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1043568
P748
Q1752346 Q701632 Q12737077
USER
Which occupations are appointed by more number of assemblies and municipal councils than Prime Minister of Vietnam ?
(c(Q12737077),P748,c(Q1752346)|c(Q701632))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q1043568
relation P748
type Q1752346
type Q701632
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { resource:Q1043568 property:P748 ?y . { { ?y rdf:type ontology:Q701632 } UNION { ?y rdf:type ontology:Q1752346 } } } } . FILTER ( ?m > ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?m ) WHERE { { ?b property:P748 ?v . ?b rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q1752346 } UNION { ?b property:P748 ?v . ?b rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q701632 } } GROUP BY ?b } }
Prime Minister of Vietnam
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Prime Minister of Vietnam
relation appointed by
type assembly
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { resource:Prime_Minister_of_Vietnam property:appointed_by ?y . { { ?y rdf:type ontology:municipal_council } UNION { ?y rdf:type ontology:assembly } } } } . FILTER ( ?m > ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?m ) WHERE { { ?b property:appointed_by ?v . ?b rdf:type ontology:occupation . ?v rdf:type ontology:assembly } UNION { ?b property:appointed_by ?v . ?b rdf:type ontology:occupation . ?v rdf:type ontology:municipal_council } } GROUP BY ?b } }
[]
assembly municipal council occupation
Q842386 Q1370482 Q20748656
SYSTEM
Prime Minister of Russia, President of Cuba, municipal executive of Zoetermeer
Q20748656 Q20890913 Q21371106 Q21013169 Q15305714 Q20872382 Q20872273 Q842386 Q19056310 Q890030 Q20891385 Q796593 Q21384866 Q20194364 Q21383592 Q7574264 Q20859388 Q20867550 Q20872296 Q3409203 Q327948 Q1370482 Q20872339 Q26209358 Q20992515 Q26721218 Q628102
(c(Q12737077),P748,c(Q1752346)|c(Q701632))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q1043568
relation P748
type Q1752346
type Q701632
[ANSWERS] are appointed by more number of assemblies and municipal councils than Prime Minister of Vietnam
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { resource:Q1043568 property:P748 ?y . { { ?y rdf:type ontology:Q701632 } UNION { ?y rdf:type ontology:Q1752346 } } } } . FILTER ( ?m > ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?m ) WHERE { { ?b property:P748 ?v . ?b rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q1752346 } UNION { ?b property:P748 ?v . ?b rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q701632 } } GROUP BY ?b } }
municipal executive of Zoetermeer municipal executive of Eindhoven municipal executive of Amersfoort municipal executive of The Hague Prime Minister of Libya municipal executive of Coevorden municipal executive of Boxmeer Prime Minister of Russia President of Botswana State President of South Africa municipal executive of Deventer President of Malta municipal executive of Rotterdam municipal executive of Amsterdam municipal executive of Haarlem Speaker of the Hellenic Parliament municipal executive of Mierlo municipal executive of Gorinchem municipal executive of Almere President of Greece President of Israel President of Cuba municipal executive of Woerden municipal executive of Warffum municipal executive of Utrecht municipal executive of Almere President of Nauru
Prime Minister of Russia, President of Cuba and municipal executive of Zoetermeer are appointed by more number of assemblies and municipal councils than Prime Minister of Vietnam
Prime Minister of Russia President of Cuba municipal executive of Zoetermeer
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Prime Minister of Vietnam
relation appointed by
type assembly
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { resource:Prime_Minister_of_Vietnam property:appointed_by ?y . { { ?y rdf:type ontology:municipal_council } UNION { ?y rdf:type ontology:assembly } } } } . FILTER ( ?m > ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?m ) WHERE { { ?b property:appointed_by ?v . ?b rdf:type ontology:occupation . ?v rdf:type ontology:assembly } UNION { ?b property:appointed_by ?v . ?b rdf:type ontology:occupation . ?v rdf:type ontology:municipal_council } } GROUP BY ?b } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5261065
P748
Q1752346 Q701632 Q12737077
USER
And what about Deputy Prime Minister of Australia?
(c(Q12737077),P748,c(Q1752346)|c(Q701632))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q5261065
relation P748
type Q1752346
type Q701632
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Q5261065 property:P748 ?n . { { ?n rdf:type ontology:Q1752346 } UNION { ?n rdf:type ontology:Q701632 } } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?c ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } } GROUP BY ?i } }
Deputy Prime Minister of Australia
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Deputy Prime Minister of Australia
relation appointed by
type assembly
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Deputy_Prime_Minister_of_Australia property:appointed_by ?n . { { ?n rdf:type ontology:assembly } UNION { ?n rdf:type ontology:municipal_council } } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?c ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:municipal_council ) ( ontology:assembly ) } } GROUP BY ?i } }
[]
assembly municipal council occupation
Q842386 Q1370482 Q20748656
SYSTEM
Prime Minister of Russia, President of Cuba, municipal executive of Zoetermeer
Q20748656 Q20890913 Q21371106 Q21013169 Q15305714 Q20872382 Q20872273 Q842386 Q19056310 Q890030 Q20891385 Q796593 Q21384866 Q20194364 Q21383592 Q7574264 Q20859388 Q20867550 Q20872296 Q3409203 Q327948 Q1370482 Q20872339 Q26209358 Q20992515 Q26721218 Q628102
(c(Q12737077),P748,c(Q1752346)|c(Q701632))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q5261065
relation P748
type Q1752346
type Q701632
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Q5261065 property:P748 ?n . { { ?n rdf:type ontology:Q1752346 } UNION { ?n rdf:type ontology:Q701632 } } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?c ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } } GROUP BY ?i } }
municipal executive of Zoetermeer municipal executive of Eindhoven municipal executive of Amersfoort municipal executive of The Hague Prime Minister of Libya municipal executive of Coevorden municipal executive of Boxmeer Prime Minister of Russia President of Botswana State President of South Africa municipal executive of Deventer President of Malta municipal executive of Rotterdam municipal executive of Amsterdam municipal executive of Haarlem Speaker of the Hellenic Parliament municipal executive of Mierlo municipal executive of Gorinchem municipal executive of Almere President of Greece President of Israel President of Cuba municipal executive of Woerden municipal executive of Warffum municipal executive of Utrecht municipal executive of Almere President of Nauru
Prime Minister of Russia President of Cuba municipal executive of Zoetermeer
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Deputy Prime Minister of Australia
relation appointed by
type assembly
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Deputy_Prime_Minister_of_Australia property:appointed_by ?n . { { ?n rdf:type ontology:assembly } UNION { ?n rdf:type ontology:municipal_council } } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?c ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:municipal_council ) ( ontology:assembly ) } } GROUP BY ?i } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1370482
P39
Q502895
USER
Which people were responsible for occupying the position of that occupation ?
(c(Q502895),P39,Q1370482)
action filter_type
action find_reverse
entity Q1370482
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1370482']
SELECT DISTINCT ?z WHERE { ?z property:P39 resource:Q1370482 . ?z rdf:type ontology:Q502895 }
President of Cuba
action filter_type
action find_reverse
entity President of Cuba
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of Cuba']
SELECT DISTINCT ?z WHERE { ?z property:position_held resource:President_of_Cuba . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1370482
SYSTEM
Did you mean President of Cuba ?
Q842386 Q1370482 Q20748656
(c(Q502895),P39,Q842386) (c(Q502895),P39,Q1370482) (c(Q502895),P39,Q20748656)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q842386'] [{'concept': 'Q502895'}, 'P39', 'Q1370482'] [{'concept': 'Q502895'}, 'P39', 'Q20748656']
SELECT DISTINCT ?z WHERE { ?z property:P39 resource:Q1370482 . ?z rdf:type ontology:Q502895 }
Prime Minister of Russia President of Cuba municipal executive of Zoetermeer
Did you mean President of Cuba ?
President of Cuba
[{'concept': 'common name'}, 'position held', 'Prime Minister of Russia'] [{'concept': 'common name'}, 'position held', 'President of Cuba'] [{'concept': 'common name'}, 'position held', 'municipal executive of Zoetermeer']
SELECT DISTINCT ?z WHERE { ?z property:position_held resource:President_of_Cuba . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P39,Q1370482)
[{'concept': 'Q502895'}, 'P39', 'Q1370482']
[{'concept': 'common name'}, 'position held', 'President of Cuba']
[]
Q11256 Q103285 Q46809
SYSTEM
Fidel Castro, José Martín, Raúl Castro
Q11256 Q11270 Q880225 Q103285 Q455365 Q365703 Q878826 Q48690 Q878835 Q554259 Q318294 Q655779 Q880250 Q322173 Q46809 Q449356
(c(Q502895),P39,Q1370482)
action filter_type
action find_reverse
entity Q1370482
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q1370482']
SELECT DISTINCT ?z WHERE { ?z property:P39 resource:Q1370482 . ?z rdf:type ontology:Q502895 }
Fidel Castro Fulgencio Batista Carlos Hevia José Martín Ramón Grau Gerardo Machado Mario García Menocal Osvaldo Dorticós Torrado Miguel Mariano Gómez José Miguel Gómez Federico Laredo Brú Carlos Prío Socarrás Alfredo Zayas y Alfonso Tomás Estrada Palma Raúl Castro Manuel Urrutia Lleó
Fidel Castro, José Martín and Raúl Castro were responsible for occupying the position of that occupation
Fidel Castro José Martín Raúl Castro
action filter_type
action find_reverse
entity President of Cuba
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of Cuba']
SELECT DISTINCT ?z WHERE { ?z property:position_held resource:President_of_Cuba . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1370482 Q24323339
P361
Q35798
USER
How many executive branches are President of Cuba or Minister of Health a component of ?
(Q1370482,P361,c(Q35798)) (Q24323339,P361,c(Q35798))
action count
action union
action filter_type
action find
entity Q1370482
relation P361
type Q35798
action filter_type
action find
entity Q24323339
relation P361
type Q35798
['Q1370482', 'P361', {'concept': 'Q35798'}] ['Q24323339', 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { resource:Q1370482 property:P361 ?a . ?a rdf:type ontology:Q35798 } UNION { resource:Q24323339 property:P361 ?a . ?a rdf:type ontology:Q35798 } }
President of Cuba Minister of Health
action count
action union
action filter_type
action find
entity President of Cuba
relation part of
type executive branch
action filter_type
action find
entity Minister of Health
relation part of
type executive branch
['President of Cuba', 'part of', {'concept': 'executive branch'}] ['Minister of Health', 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { resource:President_of_Cuba property:part_of ?a . ?a rdf:type ontology:executive_branch } UNION { resource:Minister_of_Health property:part_of ?a . ?a rdf:type ontology:executive_branch } }
[]
executive branch
SYSTEM
2
Q2665914 Q834304
(Q1370482,P361,c(Q35798)) (Q24323339,P361,c(Q35798))
action count
action union
action filter_type
action find
entity Q1370482
relation P361
type Q35798
action filter_type
action find
entity Q24323339
relation P361
type Q35798
[ANSWER]
['Q1370482', 'P361', {'concept': 'Q35798'}] ['Q24323339', 'P361', {'concept': 'Q35798'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { resource:Q1370482 property:P361 ?a . ?a rdf:type ontology:Q35798 } UNION { resource:Q24323339 property:P361 ?a . ?a rdf:type ontology:Q35798 } }
Northern Ireland Executive Cabinet of Cuba
2
action count
action union
action filter_type
action find
entity President of Cuba
relation part of
type executive branch
action filter_type
action find
entity Minister of Health
relation part of
type executive branch
['President of Cuba', 'part of', {'concept': 'executive branch'}] ['Minister of Health', 'part of', {'concept': 'executive branch'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { resource:President_of_Cuba property:part_of ?a . ?a rdf:type ontology:executive_branch } UNION { resource:Minister_of_Health property:part_of ?a . ?a rdf:type ontology:executive_branch } }
[]