Simple Question (Direct)
Simple Question
Q1127998
P102
Q7210356
USER
Which political organization is Konstantin von Waldburg zu Zeil a member of ?
(Q1127998,P102,c(Q7210356))
action filter_type
action find
entity Q1127998
relation P102
type Q7210356
['Q1127998', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q1127998 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Konstantin von Waldburg zu Zeil
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation member of political party
type political organization
['Konstantin von Waldburg zu Zeil', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q157537
SYSTEM
Centre Party
Q157537
(Q1127998,P102,c(Q7210356))
action filter_type
action find
entity Q1127998
relation P102
type Q7210356
The [ANSWER] is Konstantin von Waldburg zu Zeil a member of
['Q1127998', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q1127998 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Centre Party
The Centre Party is Konstantin von Waldburg zu Zeil a member of
Centre Party
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation member of political party
type political organization
['Konstantin von Waldburg zu Zeil', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1127998
P937
Q56061
USER
Which is the work location of that person ?
(Q157537,P937,c(Q56061))
action filter_type
action find
entity Q1127998
relation P937
type Q56061
['Q157537', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1127998 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Konstantin von Waldburg zu Zeil
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation work location
type administrative territorial entity
['Centre Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q157537,P937,c(Q56061))
action filter_type
action find
entity Q1127998
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q157537', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1127998 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Berlin
The work location of that person is in Berlin
Berlin
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation work location
type administrative territorial entity
['Centre Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q64 Q27581597
P937
Q502895
USER
Does Sally Mansour work at that administrative territory ?
(Q27581597,P937,Q64)
action is_in
entity Q27581597
action find
entity Q64
relation P937
['Q27581597', 'P937', 'Q64']
ASK WHERE { resource:Q64 property:P937 resource:Q27581597 }
Berlin Sally Mansour
action is_in
entity Sally Mansour
action find
entity Berlin
relation work location
['Sally Mansour', 'work location', 'Berlin']
ASK WHERE { resource:Berlin property:work_location resource:Sally_Mansour }
[]
common name
SYSTEM
NO
(Q27581597,P937,Q64)
action is_in
entity Q27581597
action find
entity Q64
relation P937
[ANSWER]
['Q27581597', 'P937', 'Q64']
ASK WHERE { resource:Q64 property:P937 resource:Q27581597 }
No
action is_in
entity Sally Mansour
action find
entity Berlin
relation work location
['Sally Mansour', 'work location', 'Berlin']
ASK WHERE { resource:Berlin property:work_location resource:Sally_Mansour }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q64
P1376
Q7275 Q1048835
USER
How many states and political territories have Berlin have their center of administration ?
(Q64,P1376,c(Q7275)) (Q64,P1376,c(Q1048835))
action count
action union
action filter_type
action find
entity Q64
relation P1376
type Q7275
action filter_type
action find
entity Q64
relation P1376
type Q1048835
['Q64', 'P1376', {'concept': 'Q7275'}] ['Q64', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } }
Berlin
action count
action union
action filter_type
action find
entity Berlin
relation capital of
type state
action filter_type
action find
entity Berlin
relation capital of
type political territorial entity
['Berlin', 'capital of', {'concept': 'state'}] ['Berlin', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:state ) ( ontology:political_territorial_entity ) } }
[]
state political territorial entity
SYSTEM
5 states and 1 political territories
Q157367 Q27306 Q183 Q161036 Q41304 Q7318
(Q64,P1376,c(Q7275)) (Q64,P1376,c(Q1048835))
action count
action union
action filter_type
action find
entity Q64
relation P1376
type Q7275
action filter_type
action find
entity Q64
relation P1376
type Q1048835
[ANSWER]
['Q64', 'P1376', {'concept': 'Q7275'}] ['Q64', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } }
Brandenburg-Prussia Kingdom of Prussia Germany Free State of Prussia Weimar Republic Nazi Germany
5 states and 1 political territories
action count
action union
action filter_type
action find
entity Berlin
relation capital of
type state
action filter_type
action find
entity Berlin
relation capital of
type political territorial entity
['Berlin', 'capital of', {'concept': 'state'}] ['Berlin', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:state ) ( ontology:political_territorial_entity ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q237253
P559
Q56061 Q728937 Q628179
USER
How many administrative territories are the terminus for lesser number of railroad lines and trails than Great Yarmouth ?
(c(Q728937)|c(Q628179),P559,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q237253
relation P559
type Q728937
type Q628179
[[{'concept': 'Q728937'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?i WHERE { { ?t property:P559 ?i . ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q728937 } UNION { ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q628179 . ?t property:P559 ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P559 resource:Q237253 . { { ?e rdf:type ontology:Q728937 } UNION { ?e rdf:type ontology:Q628179 } } } } . FILTER ( ?q < ?b ) }
Great Yarmouth
action count
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Great Yarmouth
relation terminus
type railroad line
type trail
[[{'concept': 'railroad line'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?i WHERE { { ?t property:terminus ?i . ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:railroad_line } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:trail . ?t property:terminus ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:terminus resource:Great_Yarmouth . { { ?e rdf:type ontology:railroad_line } UNION { ?e rdf:type ontology:trail } } } } . FILTER ( ?q < ?b ) }
[]
administrative territorial entity railroad line trail
SYSTEM
127
Q938820 Q9832 Q3051477 Q1020217 Q11851639 Q23436 Q3812238 Q69639 Q1017610 Q10084 Q375314 Q12439 Q7567083 Q541055 Q723164 Q4825403 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q185453 Q588804 Q3001 Q5902931 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q7651719 Q171357 Q134620 Q956 Q959 Q992420 Q556989 Q1011611 Q649 Q2065223 Q211059 Q42159 Q1009428 Q18808 Q1011221 Q7050868 Q24826 Q6509 Q671348 Q5477618 Q5032535 Q4093 Q4356873 Q11839080 Q585 Q987170 Q35433 Q1763 Q1449 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q6820370 Q40840 Q542966 Q1616042 Q643944 Q756103 Q25330 Q3992 Q190847 Q1318695 Q2073801 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2703030 Q2133814 Q794802 Q7944369 Q646784 Q79499 Q184383 Q6275457 Q263954 Q10561690 Q12892 Q6816 Q1735 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q580016 Q2290 Q244289 Q588417 Q634172 Q146659 Q522362 Q790938 Q530309 Q65 Q1085
(c(Q728937)|c(Q628179),P559,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q237253
relation P559
type Q728937
type Q628179
[ANSWER]
[[{'concept': 'Q728937'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?i WHERE { { ?t property:P559 ?i . ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q728937 } UNION { ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q628179 . ?t property:P559 ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P559 resource:Q237253 . { { ?e rdf:type ontology:Q728937 } UNION { ?e rdf:type ontology:Q628179 } } } } . FILTER ( ?q < ?b ) }
Virrat Eindhoven Ellewoutsdijk Minehead Annalankangas Edinburgh Bronygarth Göschenen Horgoš Vlissingen Folkestone Detroit South Drain Oijen Pop Austrepollen Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Multan Badrinath Paramaribo Horda, Norway Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Svartnes Kecskemét Jyväskylä Beijing Vladivostok Fjærland Ankeny Portpatrick Moscow Port Grimaud Jõhvi Hanam Drymen Pyongyang Kincardine Nordrepollen Liverpool Burgas Worthing Frafjord Cann River Glasgow Mariehäll Akdere, Silifke Oslo Inčukalns Saint-Rhémy-en-Bosses Murmansk Genoa Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Merritton, Ontario Tampere Angren, Uzbekistan Hessle Asaluyeh Lewes Trenton Liège Alexandroupoli Apoera Helmsley South Boston El Cajon London Gaylord Victoria Kilsby St Nicholas-at-Wade Otira Värpinge Moffat Helena Zeebrugge Jong, Norway Afobaka Lilla Alby Antwerp Ulan-Ude Innsbruck Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Albina Porsgrunn Athis-Mons Sewell, Chile Banihal Clapham Bad Säckingen Aviemore Karkkila Los Angeles Prague
127
action count
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Great Yarmouth
relation terminus
type railroad line
type trail
[[{'concept': 'railroad line'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) ?i WHERE { { ?t property:terminus ?i . ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:railroad_line } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:trail . ?t property:terminus ?i } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:terminus resource:Great_Yarmouth . { { ?e rdf:type ontology:railroad_line } UNION { ?e rdf:type ontology:trail } } } } . FILTER ( ?q < ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q375905
P559
Q56061 Q728937 Q628179
USER
And how about Deerfield?
(c(Q728937)|c(Q628179),P559,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q375905
relation P559
type Q728937
type Q628179
[[{'concept': 'Q728937'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?d WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q728937 ) ( ontology:Q628179 ) } } GROUP BY ?d } . FILTER ( ?w < ?t ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:P559 resource:Q375905 . { { ?y rdf:type ontology:Q728937 } UNION { ?y rdf:type ontology:Q628179 } } } } }
Deerfield
action count
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Deerfield
relation terminus
type railroad line
type trail
[[{'concept': 'railroad line'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?d WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:railroad_line ) ( ontology:trail ) } } GROUP BY ?d } . FILTER ( ?w < ?t ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:terminus resource:Deerfield . { { ?y rdf:type ontology:railroad_line } UNION { ?y rdf:type ontology:trail } } } } }
[]
administrative territorial entity railroad line trail
SYSTEM
127
Q938820 Q9832 Q3051477 Q1020217 Q11851639 Q23436 Q3812238 Q69639 Q1017610 Q10084 Q375314 Q12439 Q7567083 Q541055 Q723164 Q4825403 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q185453 Q588804 Q3001 Q5902931 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q7651719 Q171357 Q134620 Q956 Q959 Q992420 Q556989 Q1011611 Q649 Q2065223 Q211059 Q42159 Q1009428 Q18808 Q1011221 Q7050868 Q24826 Q6509 Q671348 Q5477618 Q5032535 Q4093 Q4356873 Q11839080 Q585 Q987170 Q35433 Q1763 Q1449 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q6820370 Q40840 Q542966 Q1616042 Q643944 Q756103 Q25330 Q3992 Q190847 Q1318695 Q2073801 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2703030 Q2133814 Q794802 Q7944369 Q646784 Q79499 Q184383 Q6275457 Q263954 Q10561690 Q12892 Q6816 Q1735 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q580016 Q2290 Q244289 Q588417 Q634172 Q146659 Q522362 Q790938 Q530309 Q65 Q1085
(c(Q728937)|c(Q628179),P559,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q375905
relation P559
type Q728937
type Q628179
[ANSWER]
[[{'concept': 'Q728937'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?d WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q728937 ) ( ontology:Q628179 ) } } GROUP BY ?d } . FILTER ( ?w < ?t ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:P559 resource:Q375905 . { { ?y rdf:type ontology:Q728937 } UNION { ?y rdf:type ontology:Q628179 } } } } }
Virrat Eindhoven Ellewoutsdijk Minehead Annalankangas Edinburgh Bronygarth Göschenen Horgoš Vlissingen Folkestone Detroit South Drain Oijen Pop Austrepollen Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Multan Badrinath Paramaribo Horda, Norway Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Svartnes Kecskemét Jyväskylä Beijing Vladivostok Fjærland Ankeny Portpatrick Moscow Port Grimaud Jõhvi Hanam Drymen Pyongyang Kincardine Nordrepollen Liverpool Burgas Worthing Frafjord Cann River Glasgow Mariehäll Akdere, Silifke Oslo Inčukalns Saint-Rhémy-en-Bosses Murmansk Genoa Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Merritton, Ontario Tampere Angren, Uzbekistan Hessle Asaluyeh Lewes Trenton Liège Alexandroupoli Apoera Helmsley South Boston El Cajon London Gaylord Victoria Kilsby St Nicholas-at-Wade Otira Värpinge Moffat Helena Zeebrugge Jong, Norway Afobaka Lilla Alby Antwerp Ulan-Ude Innsbruck Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Albina Porsgrunn Athis-Mons Sewell, Chile Banihal Clapham Bad Säckingen Aviemore Karkkila Los Angeles Prague
127
action count
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Deerfield
relation terminus
type railroad line
type trail
[[{'concept': 'railroad line'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?d WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:railroad_line ) ( ontology:trail ) } } GROUP BY ?d } . FILTER ( ?w < ?t ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { ?y property:terminus resource:Deerfield . { { ?y rdf:type ontology:railroad_line } UNION { ?y rdf:type ontology:trail } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1127998
P39
Q12737077
USER
Which occupation was a position held by Konstantin von Waldburg zu Zeil ?
(Q1127998,P39,c(Q12737077))
action filter_type
action find
entity Q1127998
relation P39
type Q12737077
['Q1127998', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1127998 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Konstantin von Waldburg zu Zeil
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation position held
type occupation
['Konstantin von Waldburg zu Zeil', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q17854096
SYSTEM
member of the Reichstag of the German Empire
Q17854096
(Q1127998,P39,c(Q12737077))
action filter_type
action find
entity Q1127998
relation P39
type Q12737077
The [ANSWER] was a position held by Konstantin von Waldburg zu Zeil
['Q1127998', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1127998 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
member of the Reichstag of the German Empire
The member of the Reichstag of the German Empire was a position held by Konstantin von Waldburg zu Zeil
member of the Reichstag of the German Empire
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation position held
type occupation
['Konstantin von Waldburg zu Zeil', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1127998
P21
Q290
USER
What is the sex of that person ?
(Q17854096,P21,c(Q290))
action filter_type
action find
entity Q1127998
relation P21
type Q290
['Q17854096', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q1127998 property:P21 ?u }
Konstantin von Waldburg zu Zeil
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation gender
type sex
['member of the Reichstag of the German Empire', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Konstantin_von_Waldburg_zu_Zeil property:gender ?u }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17854096,P21,c(Q290))
action filter_type
action find
entity Q1127998
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q17854096', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q1127998 property:P21 ?u }
male
The sex of that person is a male
male
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation gender
type sex
['member of the Reichstag of the German Empire', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Konstantin_von_Waldburg_zu_Zeil property:gender ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3938948 Q1127998
P21
Q290
USER
Or Roberto Massari?
OR((Q1127998,P21,c(Q290)), (Q3938948,P21,c(Q290)))
action filter_type
action union
action find
entity Q1127998
relation P21
action find
entity Q3938948
relation P21
type Q290
{'OR': [['Q1127998', 'P21', {'concept': 'Q290'}], ['Q3938948', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . { { resource:Q1127998 property:P21 ?y } UNION { resource:Q3938948 property:P21 ?y } } }
Roberto Massari Konstantin von Waldburg zu Zeil
action filter_type
action union
action find
entity Konstantin von Waldburg zu Zeil
relation gender
action find
entity Roberto Massari
relation gender
type sex
{'OR': [['Konstantin von Waldburg zu Zeil', 'gender', {'concept': 'sex'}], ['Roberto Massari', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . { { resource:Konstantin_von_Waldburg_zu_Zeil property:gender ?y } UNION { resource:Roberto_Massari property:gender ?y } } }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q1127998,P21,c(Q290)), (Q3938948,P21,c(Q290)))
action filter_type
action union
action find
entity Q1127998
relation P21
action find
entity Q3938948
relation P21
type Q290
[ANSWER]
{'OR': [['Q1127998', 'P21', {'concept': 'Q290'}], ['Q3938948', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . { { resource:Q1127998 property:P21 ?y } UNION { resource:Q3938948 property:P21 ?y } } }
male
male
action filter_type
action union
action find
entity Konstantin von Waldburg zu Zeil
relation gender
action find
entity Roberto Massari
relation gender
type sex
{'OR': [['Konstantin von Waldburg zu Zeil', 'gender', {'concept': 'sex'}], ['Roberto Massari', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . { { resource:Konstantin_von_Waldburg_zu_Zeil property:gender ?y } UNION { resource:Roberto_Massari property:gender ?y } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3938948
P106
Q12737077
USER
What does Roberto Massari do for a living ?
(Q3938948,P106,c(Q12737077))
action filter_type
action find
entity Q3938948
relation P106
type Q12737077
['Q3938948', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3938948 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Roberto Massari
action filter_type
action find
entity Roberto Massari
relation occupation
type occupation
['Roberto Massari', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Roberto_Massari property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q2516866
SYSTEM
publisher
Q2516866
(Q3938948,P106,c(Q12737077))
action filter_type
action find
entity Q3938948
relation P106
type Q12737077
Roberto Massari does a [ANSWER] for a living
['Q3938948', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3938948 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
publisher
Roberto Massari does a publisher for a living
publisher
action filter_type
action find
entity Roberto Massari
relation occupation
type occupation
['Roberto Massari', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Roberto_Massari property:occupation ?u . ?u rdf:type ontology:occupation }
[]