Simple Question (Direct)
Simple Question
Q16031716
P39
Q12737077
USER
What was the position held by John McAusland Denny ?
(Q16031716,P39,c(Q12737077))
action filter_type
action find
entity Q16031716
relation P39
type Q12737077
['Q16031716', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q16031716 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
John McAusland Denny
action filter_type
action find
entity John McAusland Denny
relation position held
type occupation
['John McAusland Denny', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:John_McAusland_Denny property:position_held ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q16031716,P39,c(Q12737077))
action filter_type
action find
entity Q16031716
relation P39
type Q12737077
The position held by John McAusland Denny was a [ANSWER]
['Q16031716', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q16031716 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The position held by John McAusland Denny was a Member of Parliament in the United Kingdom
Member of Parliament in the United Kingdom
action filter_type
action find
entity John McAusland Denny
relation position held
type occupation
['John McAusland Denny', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:John_McAusland_Denny property:position_held ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16707842
P106
Q502895
USER
Which people have the profession as that occupation ?
(c(Q502895),P106,Q16707842)
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q16707842']
SELECT DISTINCT ?c WHERE { ?c property:P106 resource:Q16707842 . ?c rdf:type ontology:Q502895 }
Member of Parliament in the United Kingdom
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?c WHERE { ?c property:occupation resource:Member_of_Parliament_in_the_United_Kingdom . ?c rdf:type ontology:common_name }
[]
common name
Q24573112 Q21856725 Q24292009
SYSTEM
David Lewis, Edward Stanley, Sir James Hamlyn-Williams, 3rd Baronet
Q21548870 Q24292009 Q24573112 Q21856725
(c(Q502895),P106,Q16707842)
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P106', 'Q16707842']
SELECT DISTINCT ?c WHERE { ?c property:P106 resource:Q16707842 . ?c rdf:type ontology:Q502895 }
Wilson Jones Sir James Hamlyn-Williams, 3rd Baronet David Lewis Edward Stanley
David Lewis, Edward Stanley and Sir James Hamlyn-Williams, 3rd Baronet have the profession as that occupation
David Lewis Edward Stanley Sir James Hamlyn-Williams, 3rd Baronet
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?c WHERE { ?c property:occupation resource:Member_of_Parliament_in_the_United_Kingdom . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q24573112 Q21856725 Q24292009
P21
Q290
USER
Which sexes do those people have ?
(Q24573112,P21,c(Q290)) (Q21856725,P21,c(Q290)) (Q24292009,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q24573112', 'P21', {'concept': 'Q290'}] ['Q21856725', 'P21', {'concept': 'Q290'}] ['Q24292009', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?q property:P21 ?p . ?p rdf:type ontology:Q290 . VALUES ( ?q ) { ( resource:Q21548870 ) ( resource:Q24292009 ) ( resource:Q24573112 ) } }
David Lewis Edward Stanley Sir James Hamlyn-Williams, 3rd Baronet
action filter_type
action find
entity prev_answer
relation gender
type sex
['David Lewis', 'gender', {'concept': 'sex'}] ['Edward Stanley', 'gender', {'concept': 'sex'}] ['Sir James Hamlyn-Williams, 3rd Baronet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?q property:gender ?p . ?p rdf:type ontology:sex . VALUES ( ?q ) { ( resource:Wilson_Jones ) ( resource:Sir_James_Hamlyn-Williams,_3rd_Baronet ) ( resource:David_Lewis ) } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q24573112,P21,c(Q290)) (Q21856725,P21,c(Q290)) (Q24292009,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people have a [ANSWER], [ANSWER] and [ANSWER]
['Q24573112', 'P21', {'concept': 'Q290'}] ['Q21856725', 'P21', {'concept': 'Q290'}] ['Q24292009', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?q property:P21 ?p . ?p rdf:type ontology:Q290 . VALUES ( ?q ) { ( resource:Q21548870 ) ( resource:Q24292009 ) ( resource:Q24573112 ) } }
male male male
Those people have a male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['David Lewis', 'gender', {'concept': 'sex'}] ['Edward Stanley', 'gender', {'concept': 'sex'}] ['Sir James Hamlyn-Williams, 3rd Baronet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?q property:gender ?p . ?p rdf:type ontology:sex . VALUES ( ?q ) { ( resource:Wilson_Jones ) ( resource:Sir_James_Hamlyn-Williams,_3rd_Baronet ) ( resource:David_Lewis ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16707842
P1001
Q15617994
USER
Which administrative territory comes under the jurisdiction of Member of Parliament in the United Kingdom ?
(Q16707842,P1001,c(Q15617994))
action filter_type
action find
entity Q16707842
relation P1001
type Q15617994
['Q16707842', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q16707842 property:P1001 ?v . ?v rdf:type ontology:Q15617994 }
Member of Parliament in the United Kingdom
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:applies_to_jurisdiction ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q16707842,P1001,c(Q15617994))
action filter_type
action find
entity Q16707842
relation P1001
type Q15617994
[ANSWER] comes under the jurisdiction of Member of Parliament in the [ANSWER]
['Q16707842', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q16707842 property:P1001 ?v . ?v rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom comes under the jurisdiction of Member of Parliament in the United Kingdom
United Kingdom
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of Parliament in the United Kingdom', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:applies_to_jurisdiction ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q145 Q2088560 Q4341684
P530
Q1048835
USER
Does that administrative territory have diplomatic associations with County of Montechiarugolo and Pavlivka ?
(Q145,P530,Q2088560) (Q145,P530,Q4341684)
action is_in
entity Q145
action intersection
action find_reverse
entity Q2088560
relation P530
action find_reverse
entity Q4341684
relation P530
['Q145', 'P530', 'Q2088560'] ['Q145', 'P530', 'Q4341684']
ASK WHERE { resource:Q145 property:P530 resource:Q2088560 . resource:Q145 property:P530 resource:Q4341684 }
United Kingdom County of Montechiarugolo Pavlivka
action is_in
entity United Kingdom
action intersection
action find_reverse
entity County of Montechiarugolo
relation diplomatic relation
action find_reverse
entity Pavlivka
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'County of Montechiarugolo'] ['United Kingdom', 'diplomatic relation', 'Pavlivka']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:County_of_Montechiarugolo . resource:United_Kingdom property:diplomatic_relation resource:Pavlivka }
[]
political territorial entity
SYSTEM
NO
(Q145,P530,Q2088560) (Q145,P530,Q4341684)
action is_in
entity Q145
action intersection
action find_reverse
entity Q2088560
relation P530
action find_reverse
entity Q4341684
relation P530
[ANSWER]
['Q145', 'P530', 'Q2088560'] ['Q145', 'P530', 'Q4341684']
ASK WHERE { resource:Q145 property:P530 resource:Q2088560 . resource:Q145 property:P530 resource:Q4341684 }
No
action is_in
entity United Kingdom
action intersection
action find_reverse
entity County of Montechiarugolo
relation diplomatic relation
action find_reverse
entity Pavlivka
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'County of Montechiarugolo'] ['United Kingdom', 'diplomatic relation', 'Pavlivka']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:County_of_Montechiarugolo . resource:United_Kingdom property:diplomatic_relation resource:Pavlivka }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1236794 Q2088560
P17
Q15617994
USER
Which administrative territories do County of Montechiarugolo and Civitella d'Arna belong to ?
AND((Q2088560,P17,c(Q15617994)), (Q1236794,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2088560
relation P17
action find
entity Q1236794
relation P17
type Q15617994
{'AND': [['Q2088560', 'P17', {'concept': 'Q15617994'}], ['Q1236794', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q2088560 property:P17 ?z . resource:Q1236794 property:P17 ?z }
Civitella d'Arna County of Montechiarugolo
action filter_type
action intersection
action find
entity County of Montechiarugolo
relation country
action find
entity Civitella d'Arna
relation country
type designation for an administrative territorial entity
{'AND': [['County of Montechiarugolo', 'country', {'concept': 'designation for an administrative territorial entity'}], ["Civitella d'Arna", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:County_of_Montechiarugolo property:country ?z . resource:Civitella_d'Arna property:country ?z }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q2088560,P17,c(Q15617994)), (Q1236794,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2088560
relation P17
action find
entity Q1236794
relation P17
type Q15617994
County of Montechiarugolo and Civitella d' Arna belong to the [ANSWER]
{'AND': [['Q2088560', 'P17', {'concept': 'Q15617994'}], ['Q1236794', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q2088560 property:P17 ?z . resource:Q1236794 property:P17 ?z }
Italy
County of Montechiarugolo and Civitella d' Arna belong to the Italy
Italy
action filter_type
action intersection
action find
entity County of Montechiarugolo
relation country
action find
entity Civitella d'Arna
relation country
type designation for an administrative territorial entity
{'AND': [['County of Montechiarugolo', 'country', {'concept': 'designation for an administrative territorial entity'}], ["Civitella d'Arna", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:County_of_Montechiarugolo property:country ?z . resource:Civitella_d'Arna property:country ?z }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with less number of administrative territories than Germany ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?x property:P530 ?y . ?x rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q183 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?f ) }
Germany
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?x property:diplomatic_relation ?y . ?x rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Germany property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?f ) }
[]
designation for an administrative territorial entity political territorial entity
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with less number of administrative territories than Germany
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?x property:P530 ?y . ?x rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q183 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?f ) }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Australia, Denmark and Canada are known to have diplomatic connections with less number of administrative territories than Germany
Australia Denmark Canada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?a ) WHERE { ?x property:diplomatic_relation ?y . ?x rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Germany property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q408
P530
Q15617994 Q1048835
USER
And how about Australia?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?r ) WHERE { ?w property:P530 ?s . ?w rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q408 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?r < ?b ) }
Australia
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?r ) WHERE { ?w property:diplomatic_relation ?s . ?w rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Australia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r < ?b ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?r ) WHERE { ?w property:P530 ?s . ?w rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q408 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?r < ?b ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?r ) WHERE { ?w property:diplomatic_relation ?s . ?w rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Australia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r < ?b ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1334143
P530
Q15617994
USER
Are Xiuzhou District known to have diplomatic connections with those political territories ?
(Q1334143,P530,Q35) (Q1334143,P530,Q16) (Q1334143,P530,Q40)
action is_in
entity prev_answer
action find
entity Q1334143
relation P530
['Q1334143', 'P530', 'Q35'] ['Q1334143', 'P530', 'Q16'] ['Q1334143', 'P530', 'Q40']
ASK WHERE { resource:Q1334143 property:P530 ?b . VALUES ( ?b ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Xiuzhou District
action is_in
entity prev_answer
action find
entity Xiuzhou District
relation diplomatic relation
['Xiuzhou District', 'diplomatic relation', 'Denmark'] ['Xiuzhou District', 'diplomatic relation', 'Canada'] ['Xiuzhou District', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Xiuzhou_District property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1334143,P530,Q35) (Q1334143,P530,Q16) (Q1334143,P530,Q40)
action is_in
entity prev_answer
action find
entity Q1334143
relation P530
[ANSWER]
['Q1334143', 'P530', 'Q35'] ['Q1334143', 'P530', 'Q16'] ['Q1334143', 'P530', 'Q40']
ASK WHERE { resource:Q1334143 property:P530 ?b . VALUES ( ?b ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Xiuzhou District
relation diplomatic relation
['Xiuzhou District', 'diplomatic relation', 'Denmark'] ['Xiuzhou District', 'diplomatic relation', 'Canada'] ['Xiuzhou District', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Xiuzhou_District property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16031716 Q145 Q6758534
P27
Q15617994
USER
Is John McAusland Denny a native of United Kingdom and Marcus Whitman Central School District ?
(Q16031716,P27,Q145) (Q16031716,P27,Q6758534)
action is_in
entity Q16031716
action intersection
action find_reverse
entity Q145
relation P27
action find_reverse
entity Q6758534
relation P27
['Q16031716', 'P27', 'Q145'] ['Q16031716', 'P27', 'Q6758534']
ASK WHERE { resource:Q16031716 property:P27 resource:Q145 . resource:Q16031716 property:P27 resource:Q6758534 }
John McAusland Denny United Kingdom Marcus Whitman Central School District
action is_in
entity John McAusland Denny
action intersection
action find_reverse
entity United Kingdom
relation country of citizenship
action find_reverse
entity Marcus Whitman Central School District
relation country of citizenship
['John McAusland Denny', 'country of citizenship', 'United Kingdom'] ['John McAusland Denny', 'country of citizenship', 'Marcus Whitman Central School District']
ASK WHERE { resource:John_McAusland_Denny property:country_of_citizenship resource:United_Kingdom . resource:John_McAusland_Denny property:country_of_citizenship resource:Marcus_Whitman_Central_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q16031716,P27,Q145) (Q16031716,P27,Q6758534)
action is_in
entity Q16031716
action intersection
action find_reverse
entity Q145
relation P27
action find_reverse
entity Q6758534
relation P27
[ANSWER]
['Q16031716', 'P27', 'Q145'] ['Q16031716', 'P27', 'Q6758534']
ASK WHERE { resource:Q16031716 property:P27 resource:Q145 . resource:Q16031716 property:P27 resource:Q6758534 }
YES and NO respectively
action is_in
entity John McAusland Denny
action intersection
action find_reverse
entity United Kingdom
relation country of citizenship
action find_reverse
entity Marcus Whitman Central School District
relation country of citizenship
['John McAusland Denny', 'country of citizenship', 'United Kingdom'] ['John McAusland Denny', 'country of citizenship', 'Marcus Whitman Central School District']
ASK WHERE { resource:John_McAusland_Denny property:country_of_citizenship resource:United_Kingdom . resource:John_McAusland_Denny property:country_of_citizenship resource:Marcus_Whitman_Central_School_District }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6130445 Q21856725
P106
Q12737077
USER
Which occupations do Edward Stanley and James Buckham Kennedy do for a living ?
AND((Q21856725,P106,c(Q12737077)), (Q6130445,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q21856725
relation P106
action find
entity Q6130445
relation P106
type Q12737077
{'AND': [['Q21856725', 'P106', {'concept': 'Q12737077'}], ['Q6130445', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { resource:Q6130445 property:P106 ?o . resource:Q21856725 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
James Buckham Kennedy Edward Stanley
action filter_type
action intersection
action find
entity Edward Stanley
relation occupation
action find
entity James Buckham Kennedy
relation occupation
type occupation
{'AND': [['Edward Stanley', 'occupation', {'concept': 'occupation'}], ['James Buckham Kennedy', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { resource:James_Buckham_Kennedy property:occupation ?o . resource:Edward_Stanley property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q21856725,P106,c(Q12737077)), (Q6130445,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q21856725
relation P106
action find
entity Q6130445
relation P106
type Q12737077
Edward Stanley and James Buckham Kennedy do for a living a [ANSWER]
{'AND': [['Q21856725', 'P106', {'concept': 'Q12737077'}], ['Q6130445', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { resource:Q6130445 property:P106 ?o . resource:Q21856725 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
politician
Edward Stanley and James Buckham Kennedy do for a living a politician
politician
action filter_type
action intersection
action find
entity Edward Stanley
relation occupation
action find
entity James Buckham Kennedy
relation occupation
type occupation
{'AND': [['Edward Stanley', 'occupation', {'concept': 'occupation'}], ['James Buckham Kennedy', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { resource:James_Buckham_Kennedy property:occupation ?o . resource:Edward_Stanley property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P921
Q223393
USER
Which literary genre was primarily based on that occupation ?
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q82955 . ?j rdf:type ontology:Q223393 }
politician
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:politician . ?j rdf:type ontology:literary_genre }
[]
literary genre
Q21815179
SYSTEM
worldstatesmen
Q21815179
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
The [ANSWER] was primarily based on that occupation
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q82955 . ?j rdf:type ontology:Q223393 }
worldstatesmen
The worldstatesmen was primarily based on that occupation
worldstatesmen
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:politician . ?j rdf:type ontology:literary_genre }
[]