Simple Question (Direct)
Simple Question
Q93556
P102
Q7210356
USER
Which party is Vadim Mișin affiliated with ?
(Q93556,P102,c(Q7210356))
action filter_type
action find
entity Q93556
relation P102
type Q7210356
['Q93556', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q93556 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Vadim Mișin
action filter_type
action find
entity Vadim Mișin
relation member of political party
type political organization
['Vadim Mișin', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Vadim_Mișin property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q7318528
SYSTEM
Revival Party
Q7318528
(Q93556,P102,c(Q7210356))
action filter_type
action find
entity Q93556
relation P102
type Q7210356
Vadim Mișin is affiliated with [ANSWER]
['Q93556', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q93556 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Revival Party
Vadim Mișin is affiliated with Revival Party
Revival Party
action filter_type
action find
entity Vadim Mișin
relation member of political party
type political organization
['Vadim Mișin', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Vadim_Mișin property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q93556
P488
Q7210356
USER
What is that person a chairperson of ?
(c(Q7210356),P488,Q7318528)
action filter_type
action find_reverse
entity Q93556
relation P488
type Q7210356
[{'concept': 'Q7210356'}, 'P488', 'Q7318528']
SELECT DISTINCT ?j WHERE { ?j property:P488 resource:Q93556 . ?j rdf:type ontology:Q7210356 }
Vadim Mișin
action filter_type
action find_reverse
entity Vadim Mișin
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Revival Party']
SELECT DISTINCT ?j WHERE { ?j property:chairperson resource:Vadim_Mișin . ?j rdf:type ontology:political_organization }
[]
political organization
Q7318528
SYSTEM
Revival Party
Q7318528
(c(Q7210356),P488,Q7318528)
action filter_type
action find_reverse
entity Q93556
relation P488
type Q7210356
That person a chairperson of is the [ANSWER]
[{'concept': 'Q7210356'}, 'P488', 'Q7318528']
SELECT DISTINCT ?j WHERE { ?j property:P488 resource:Q93556 . ?j rdf:type ontology:Q7210356 }
Revival Party
That person a chairperson of is the Revival Party
Revival Party
action filter_type
action find_reverse
entity Vadim Mișin
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Revival Party']
SELECT DISTINCT ?j WHERE { ?j property:chairperson resource:Vadim_Mișin . ?j rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that political organization belong to ?
(Q7318528,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7318528
relation P17
type Q15617994
['Q7318528', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Q7318528 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Revival Party
relation country
type designation for an administrative territorial entity
['Revival Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Revival_Party property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q217
(Q7318528,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7318528
relation P17
type Q15617994
[ANSWER]
['Q7318528', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Q7318528 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Republic of Moldova
1
action count
action filter_type
action find
entity Revival Party
relation country
type designation for an administrative territorial entity
['Revival Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Revival_Party property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7318528 Q11795138
P102
Q502895
USER
How many people belong to the political party named Revival Party or Non-affiliated members of the House of Lords ?
(c(Q502895),P102,Q7318528) (c(Q502895),P102,Q11795138)
action count
action union
action filter_type
action find_reverse
entity Q7318528
relation P102
type Q502895
action filter_type
action find_reverse
entity Q11795138
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q7318528'] [{'concept': 'Q502895'}, 'P102', 'Q11795138']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:P102 resource:Q7318528 . ?i rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q502895 . ?i property:P102 resource:Q11795138 } }
Revival Party Non-affiliated members of the House of Lords
action count
action union
action filter_type
action find_reverse
entity Revival Party
relation member of political party
type common name
action filter_type
action find_reverse
entity Non-affiliated members of the House of Lords
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Revival Party'] [{'concept': 'common name'}, 'member of political party', 'Non-affiliated members of the House of Lords']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:member_of_political_party resource:Revival_Party . ?i rdf:type ontology:common_name } UNION { ?i rdf:type ontology:common_name . ?i property:member_of_political_party resource:Non-affiliated_members_of_the_House_of_Lords } }
[]
common name
SYSTEM
5
Q93556 Q807703 Q336420 Q333264 Q2100977
(c(Q502895),P102,Q7318528) (c(Q502895),P102,Q11795138)
action count
action union
action filter_type
action find_reverse
entity Q7318528
relation P102
type Q502895
action filter_type
action find_reverse
entity Q11795138
relation P102
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P102', 'Q7318528'] [{'concept': 'Q502895'}, 'P102', 'Q11795138']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:P102 resource:Q7318528 . ?i rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q502895 . ?i property:P102 resource:Q11795138 } }
Vadim Mișin Barbara Young, Baroness Young of Old Scone Nazir Ahmed, Baron Ahmed Chris Smith, Baron Smith of Finsbury Pola Uddin, Baroness Uddin
5
action count
action union
action filter_type
action find_reverse
entity Revival Party
relation member of political party
type common name
action filter_type
action find_reverse
entity Non-affiliated members of the House of Lords
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Revival Party'] [{'concept': 'common name'}, 'member of political party', 'Non-affiliated members of the House of Lords']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { ?i property:member_of_political_party resource:Revival_Party . ?i rdf:type ontology:common_name } UNION { ?i rdf:type ontology:common_name . ?i property:member_of_political_party resource:Non-affiliated_members_of_the_House_of_Lords } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q6581072 Q11795138
P21 P102
Q502895
USER
Which people are members of Non-affiliated members of the House of Lords and do not have gender of female ?
AND((c(Q502895),P102,Q11795138), NOT((c(Q502895),P21,Q6581072)))
action filter_type
action difference
action find_reverse
entity Q11795138
relation P102
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q11795138'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581072']]}]}
SELECT DISTINCT ?w WHERE { ?w property:P102 resource:Q11795138 . FILTER NOT EXISTS { ?w property:P21 resource:Q6581072 } . ?w rdf:type ontology:Q502895 }
female Non-affiliated members of the House of Lords
action filter_type
action difference
action find_reverse
entity Non-affiliated members of the House of Lords
relation member of political party
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Non-affiliated members of the House of Lords'], {'NOT': [[{'concept': 'common name'}, 'gender', 'female']]}]}
SELECT DISTINCT ?w WHERE { ?w property:member_of_political_party resource:Non-affiliated_members_of_the_House_of_Lords . FILTER NOT EXISTS { ?w property:gender resource:female } . ?w rdf:type ontology:common_name }
[]
common name
Q336420 Q333264
SYSTEM
Nazir Ahmed, Baron Ahmed, Chris Smith, Baron Smith of Finsbury
Q336420 Q333264
AND((c(Q502895),P102,Q11795138), NOT((c(Q502895),P21,Q6581072)))
action filter_type
action difference
action find_reverse
entity Q11795138
relation P102
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q11795138'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581072']]}]}
SELECT DISTINCT ?w WHERE { ?w property:P102 resource:Q11795138 . FILTER NOT EXISTS { ?w property:P21 resource:Q6581072 } . ?w rdf:type ontology:Q502895 }
Nazir Ahmed, Baron Ahmed Chris Smith, Baron Smith of Finsbury
Nazir Ahmed, Baron Ahmed and Chris Smith, Baron Smith of Finsbury are members of Non-affiliated members of the House of Lords and do not have gender of female
Nazir Ahmed, Baron Ahmed Chris Smith, Baron Smith of Finsbury
action filter_type
action difference
action find_reverse
entity Non-affiliated members of the House of Lords
relation member of political party
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Non-affiliated members of the House of Lords'], {'NOT': [[{'concept': 'common name'}, 'gender', 'female']]}]}
SELECT DISTINCT ?w WHERE { ?w property:member_of_political_party resource:Non-affiliated_members_of_the_House_of_Lords . FILTER NOT EXISTS { ?w property:gender resource:female } . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q333264
P39
Q12737077
USER
How many occupations were the positions for which Chris Smith, Baron Smith of Finsbury were appointed ?
(Q333264,P39,c(Q12737077))
action count
action filter_type
action find
entity Q333264
relation P39
type Q12737077
['Q333264', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:Q12737077 . resource:Q333264 property:P39 ?t }
Chris Smith, Baron Smith of Finsbury
action count
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation position held
type occupation
['Chris Smith, Baron Smith of Finsbury', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:occupation . resource:Chris_Smith,_Baron_Smith_of_Finsbury property:position_held ?t }
[]
occupation
SYSTEM
7
Q16321336 Q3297079 Q15038174 Q7460591 Q18952564 Q7460596 Q16707842
(Q333264,P39,c(Q12737077))
action count
action filter_type
action find
entity Q333264
relation P39
type Q12737077
[ANSWER]
['Q333264', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:Q12737077 . resource:Q333264 property:P39 ?t }
Shadow Secretary of State for Work and Pensions Secretary of State for Culture, Media and Sport Shadow Secretary of State for Environment, Food and Rural Affairs Shadow Secretary of State for Culture, Media and Sport Member of the House of Lords Shadow Secretary of State for Health Member of Parliament in the United Kingdom
7
action count
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation position held
type occupation
['Chris Smith, Baron Smith of Finsbury', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:occupation . resource:Chris_Smith,_Baron_Smith_of_Finsbury property:position_held ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q333264
P734
Q82799
USER
Who is associated with that person ?
action filter_type
action find
entity Q333264
relation P734
type Q82799
SELECT DISTINCT ?h WHERE { resource:Q333264 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Chris Smith, Baron Smith of Finsbury
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation family name
type name
SELECT DISTINCT ?h WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:family_name ?h . ?h rdf:type ontology:name }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
action filter_type
action find
entity Q333264
relation P734
type Q82799
[ANSWER] is associated with that person
SELECT DISTINCT ?h WHERE { resource:Q333264 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Smith
Smith is associated with that person
Smith
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation family name
type name
SELECT DISTINCT ?h WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:family_name ?h . ?h rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q333264
P735
Q82799
USER
Which name is that person known by ?
(Q1158446,P735,c(Q82799))
action filter_type
action find
entity Q333264
relation P735
type Q82799
['Q1158446', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q82799 . resource:Q333264 property:P735 ?z }
Chris Smith, Baron Smith of Finsbury
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation given name
type name
['Smith', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:name . resource:Chris_Smith,_Baron_Smith_of_Finsbury property:given_name ?z }
[]
name
Q339346
SYSTEM
Chris
Q339346
(Q1158446,P735,c(Q82799))
action filter_type
action find
entity Q333264
relation P735
type Q82799
That person is known for [ANSWER]
['Q1158446', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q82799 . resource:Q333264 property:P735 ?z }
Chris
That person is known for Chris
Chris
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation given name
type name
['Smith', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:name . resource:Chris_Smith,_Baron_Smith_of_Finsbury property:given_name ?z }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q333264
P39
Q12737077
USER
How many occupations were the positions held by Chris Smith, Baron Smith of Finsbury ?
(Q333264,P39,c(Q12737077))
action count
action filter_type
action find
entity Q333264
relation P39
type Q12737077
['Q333264', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q333264 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Chris Smith, Baron Smith of Finsbury
action count
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation position held
type occupation
['Chris Smith, Baron Smith of Finsbury', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
SYSTEM
7
Q16321336 Q3297079 Q15038174 Q7460591 Q18952564 Q7460596 Q16707842
(Q333264,P39,c(Q12737077))
action count
action filter_type
action find
entity Q333264
relation P39
type Q12737077
[ANSWER]
['Q333264', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q333264 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Shadow Secretary of State for Work and Pensions Secretary of State for Culture, Media and Sport Shadow Secretary of State for Environment, Food and Rural Affairs Shadow Secretary of State for Culture, Media and Sport Member of the House of Lords Shadow Secretary of State for Health Member of Parliament in the United Kingdom
7
action count
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation position held
type occupation
['Chris Smith, Baron Smith of Finsbury', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q333264
P106
Q12737077
USER
Which occupation is the profession of that person ?
action filter_type
action find
entity Q333264
relation P106
type Q12737077
SELECT DISTINCT ?n WHERE { resource:Q333264 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Chris Smith, Baron Smith of Finsbury
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation occupation
type occupation
SELECT DISTINCT ?n WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
action filter_type
action find
entity Q333264
relation P106
type Q12737077
Is [ANSWER] is the profession of that person
SELECT DISTINCT ?n WHERE { resource:Q333264 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
politician
Is politician is the profession of that person
politician
action filter_type
action find
entity Chris Smith, Baron Smith of Finsbury
relation occupation
type occupation
SELECT DISTINCT ?n WHERE { resource:Chris_Smith,_Baron_Smith_of_Finsbury property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P921
Q12737077 Q386724 Q838948
USER
How many occupations were the main subjects of more number of works and works of art 's work than that occupation ?
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q386724
type Q838948
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { ?i rdf:type ?x . VALUES ( ?x ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } } . ?i property:P921 resource:Q82955 } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?v WHERE { { ?d property:P921 ?v . ?d rdf:type ontology:Q386724 . ?v rdf:type ontology:Q12737077 } UNION { ?d property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q838948 } } GROUP BY ?v } }
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { ?i rdf:type ?x . VALUES ( ?x ) { ( ontology:work ) ( ontology:work_of_art ) } } . ?i property:main_subject resource:politician } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?v WHERE { { ?d property:main_subject ?v . ?d rdf:type ontology:work . ?v rdf:type ontology:occupation } UNION { ?d property:main_subject ?v . ?v rdf:type ontology:occupation . ?d rdf:type ontology:work_of_art } } GROUP BY ?v } }
[]
occupation work work of art
SYSTEM
22
Q15637082 Q911554 Q39631 Q1124183 Q11631 Q33999 Q36180 Q7358 Q1930187 Q9402 Q2961580 Q101539 Q205375 Q164236 Q936969 Q16746569 Q16003605 Q245068 Q33231 Q2095549 Q1674312 Q16003532
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q386724
type Q838948
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { ?i rdf:type ?x . VALUES ( ?x ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } } . ?i property:P921 resource:Q82955 } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?v WHERE { { ?d property:P921 ?v . ?d rdf:type ontology:Q386724 . ?v rdf:type ontology:Q12737077 } UNION { ?d property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q838948 } } GROUP BY ?v } }
industrialist business magnate physician lumberjack astronaut actor writer clown journalist ninja taxi driver flight attendant inventor war correspondent nanny high school student elementary school student comedian photographer aviator rag-and-bone man middle school student
22
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { ?i rdf:type ?x . VALUES ( ?x ) { ( ontology:work ) ( ontology:work_of_art ) } } . ?i property:main_subject resource:politician } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?v WHERE { { ?d property:main_subject ?v . ?d rdf:type ontology:work . ?v rdf:type ontology:occupation } UNION { ?d property:main_subject ?v . ?v rdf:type ontology:occupation . ?d rdf:type ontology:work_of_art } } GROUP BY ?v } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q11795138
P21 P102
Q502895
USER
Which people are the members of Non-affiliated members of the House of Lords and have male as the sex ?
AND((c(Q502895),P102,Q11795138), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q11795138
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q11795138'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P102 resource:Q11795138 . ?v property:P21 resource:Q6581097 }
male Non-affiliated members of the House of Lords
action filter_type
action intersection
action find_reverse
entity Non-affiliated members of the House of Lords
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Non-affiliated members of the House of Lords'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:member_of_political_party resource:Non-affiliated_members_of_the_House_of_Lords . ?v property:gender resource:male }
[]
common name
Q336420 Q333264
SYSTEM
Nazir Ahmed, Baron Ahmed, Chris Smith, Baron Smith of Finsbury
Q336420 Q333264
AND((c(Q502895),P102,Q11795138), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q11795138
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q11795138'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P102 resource:Q11795138 . ?v property:P21 resource:Q6581097 }
Nazir Ahmed, Baron Ahmed Chris Smith, Baron Smith of Finsbury
Nazir Ahmed, Baron Ahmed and Chris Smith, Baron Smith of Finsbury are the members of Non-affiliated members of the House of Lords and have male as the sex
Nazir Ahmed, Baron Ahmed Chris Smith, Baron Smith of Finsbury
action filter_type
action intersection
action find_reverse
entity Non-affiliated members of the House of Lords
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Non-affiliated members of the House of Lords'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:member_of_political_party resource:Non-affiliated_members_of_the_House_of_Lords . ?v property:gender resource:male }
[]