Simple Question (Direct)
Simple Question
Q703745
P140
Q879146
USER
Which Christian denomination does Stanisław Nagy correspond to ?
(Q703745,P140,c(Q879146))
action filter_type
action find
entity Q703745
relation P140
type Q879146
['Q703745', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?k WHERE { resource:Q703745 property:P140 ?k . ?k rdf:type ontology:Q879146 }
Stanisław Nagy
action filter_type
action find
entity Stanisław Nagy
relation religion
type Christian denomination
['Stanisław Nagy', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?k WHERE { resource:Stanisław_Nagy property:religion ?k . ?k rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q703745,P140,c(Q879146))
action filter_type
action find
entity Q703745
relation P140
type Q879146
Stanisław Nagy corresponds à [ANSWER]
['Q703745', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?k WHERE { resource:Q703745 property:P140 ?k . ?k rdf:type ontology:Q879146 }
Roman Catholic Church
Stanisław Nagy corresponds à Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Stanisław Nagy
relation religion
type Christian denomination
['Stanisław Nagy', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?k WHERE { resource:Stanisław_Nagy property:religion ?k . ?k rdf:type ontology:Christian_denomination }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q703745
P39
Q12737077
USER
Which occupations were the positions for which Stanisław Nagy were appointed ?
(Q703745,P39,c(Q12737077))
action filter_type
action find
entity Q703745
relation P39
type Q12737077
['Q703745', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q703745 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Stanisław Nagy
action filter_type
action find
entity Stanisław Nagy
relation position held
type occupation
['Stanisław Nagy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Stanisław_Nagy property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q45722 Q29182
SYSTEM
cardinal, bishop
Q45722 Q29182
(Q703745,P39,c(Q12737077))
action filter_type
action find
entity Q703745
relation P39
type Q12737077
And [ANSWERS] were the positions for which Stanisław Nagy were appointed
['Q703745', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q703745 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
cardinal bishop
And cardinal and bishop were the positions for which Stanisław Nagy were appointed
cardinal bishop
action filter_type
action find
entity Stanisław Nagy
relation position held
type occupation
['Stanisław Nagy', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Stanisław_Nagy property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7965075 Q703745
P27
Q15617994
USER
Which administrative territories are Stanisław Nagy or Walter Hargesheimer a civilian of ?
OR((Q703745,P27,c(Q15617994)), (Q7965075,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q703745
relation P27
action find
entity Q7965075
relation P27
type Q15617994
{'OR': [['Q703745', 'P27', {'concept': 'Q15617994'}], ['Q7965075', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q7965075 property:P27 ?c } UNION { resource:Q703745 property:P27 ?c } } }
Walter Hargesheimer Stanisław Nagy
action filter_type
action union
action find
entity Stanisław Nagy
relation country of citizenship
action find
entity Walter Hargesheimer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stanisław Nagy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Walter Hargesheimer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Walter_Hargesheimer property:country_of_citizenship ?c } UNION { resource:Stanisław_Nagy property:country_of_citizenship ?c } } }
[]
designation for an administrative territorial entity
Q30 Q36
SYSTEM
United States of America, Poland
Q30 Q36
OR((Q703745,P27,c(Q15617994)), (Q7965075,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q703745
relation P27
action find
entity Q7965075
relation P27
type Q15617994
[ANSWERS] are Stanisław Nagy or Walter Hargesheimer a civilian of
{'OR': [['Q703745', 'P27', {'concept': 'Q15617994'}], ['Q7965075', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q7965075 property:P27 ?c } UNION { resource:Q703745 property:P27 ?c } } }
United States of America Poland
United States of America and Poland are Stanisław Nagy or Walter Hargesheimer a civilian of
United States of America Poland
action filter_type
action union
action find
entity Stanisław Nagy
relation country of citizenship
action find
entity Walter Hargesheimer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Stanisław Nagy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Walter Hargesheimer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Walter_Hargesheimer property:country_of_citizenship ?c } UNION { resource:Stanisław_Nagy property:country_of_citizenship ?c } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q7965075
P106
Q12737077 Q28640
USER
How many occupations or professions have Walter Hargesheimer as his/her as a career ?
(Q7965075,P106,c(Q12737077)) (Q7965075,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q7965075
relation P106
type Q12737077
action filter_type
action find
entity Q7965075
relation P106
type Q28640
['Q7965075', 'P106', {'concept': 'Q12737077'}] ['Q7965075', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:Q12737077 ) ( ontology:Q28640 ) } . ?k rdf:type ?m }
Walter Hargesheimer
action count
action union
action filter_type
action find
entity Walter Hargesheimer
relation occupation
type occupation
action filter_type
action find
entity Walter Hargesheimer
relation occupation
type profession
['Walter Hargesheimer', 'occupation', {'concept': 'occupation'}] ['Walter Hargesheimer', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:occupation ) ( ontology:profession ) } . ?k rdf:type ?m }
[]
occupation profession
SYSTEM
3
Q19204627 Q3246315 Q5137571
(Q7965075,P106,c(Q12737077)) (Q7965075,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q7965075
relation P106
type Q12737077
action filter_type
action find
entity Q7965075
relation P106
type Q28640
[ANSWER]
['Q7965075', 'P106', {'concept': 'Q12737077'}] ['Q7965075', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:Q12737077 ) ( ontology:Q28640 ) } . ?k rdf:type ?m }
American football player head coach basketball coach
3
action count
action union
action filter_type
action find
entity Walter Hargesheimer
relation occupation
type occupation
action filter_type
action find
entity Walter Hargesheimer
relation occupation
type profession
['Walter Hargesheimer', 'occupation', {'concept': 'occupation'}] ['Walter Hargesheimer', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { VALUES ( ?m ) { ( ontology:occupation ) ( ontology:profession ) } . ?k rdf:type ?m }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q82025
P180
Q15617994 Q11060274 Q2342494
USER
How many administrative territories are expressed in approximately the same number of prints or collectables as horn ?
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q82025
relation P180
type Q11060274
type Q2342494
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?d WHERE { VALUES ( ?x ) { ( ontology:Q11060274 ) ( ontology:Q2342494 ) } . ?m rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P180 resource:Q82025 . { { ?u rdf:type ontology:Q11060274 } UNION { ?u rdf:type ontology:Q2342494 } } } } . FILTER ( ?n = ?l ) }
horn
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity horn
relation depicts
type print
type collectable
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?d WHERE { VALUES ( ?x ) { ( ontology:print ) ( ontology:collectable ) } . ?m rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:depicts resource:horn . { { ?u rdf:type ontology:print } UNION { ?u rdf:type ontology:collectable } } } } . FILTER ( ?n = ?l ) }
[]
designation for an administrative territorial entity print collectable
SYSTEM
82
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q148 Q128081 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q553347 Q551142 Q652480 Q111144 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q72432 Q811 Q772 Q82025 Q1016 Q1273 Q242683 Q80563 Q689720 Q33788 Q12563 Q190963 Q42288 Q1034158
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q82025
relation P180
type Q11060274
type Q2342494
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?d WHERE { VALUES ( ?x ) { ( ontology:Q11060274 ) ( ontology:Q2342494 ) } . ?m rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P180 resource:Q82025 . { { ?u rdf:type ontology:Q11060274 } UNION { ?u rdf:type ontology:Q2342494 } } } } . FILTER ( ?n = ?l ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom People's Republic of China Cori, Lazio Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Kobern-Gondorf Wartenberg Kennemerland Canossa Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Procida Nicaragua Drenthe horn Libya Tuscany Genzano di Roma Amalfi Thörl New Caledonia Landes Frascati Asola Cap Norfeu
82
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity horn
relation depicts
type print
type collectable
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?d WHERE { VALUES ( ?x ) { ( ontology:print ) ( ontology:collectable ) } . ?m rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:depicts resource:horn . { { ?u rdf:type ontology:print } UNION { ?u rdf:type ontology:collectable } } } } . FILTER ( ?n = ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1280
P180
Q15617994 Q11060274 Q2342494
USER
And how about Umbria?
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1280
relation P180
type Q11060274
type Q2342494
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P180 ?y . ?s rdf:type ontology:Q11060274 . ?y rdf:type ontology:Q15617994 } UNION { ?s property:P180 ?y . ?y rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?e = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P180 resource:Q1280 . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:Q11060274 ) ( ontology:Q2342494 ) } } } } }
Umbria
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Umbria
relation depicts
type print
type collectable
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:depicts ?y . ?s rdf:type ontology:print . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s property:depicts ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?e = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:depicts resource:Umbria . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:print ) ( ontology:collectable ) } } } } }
[]
designation for an administrative territorial entity print collectable
SYSTEM
82
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q148 Q128081 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q553347 Q551142 Q652480 Q111144 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q72432 Q811 Q772 Q82025 Q1016 Q1273 Q242683 Q80563 Q689720 Q33788 Q12563 Q190963 Q42288 Q1034158
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1280
relation P180
type Q11060274
type Q2342494
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P180 ?y . ?s rdf:type ontology:Q11060274 . ?y rdf:type ontology:Q15617994 } UNION { ?s property:P180 ?y . ?y rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?e = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P180 resource:Q1280 . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:Q11060274 ) ( ontology:Q2342494 ) } } } } }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom People's Republic of China Cori, Lazio Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Kobern-Gondorf Wartenberg Kennemerland Canossa Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Procida Nicaragua Drenthe horn Libya Tuscany Genzano di Roma Amalfi Thörl New Caledonia Landes Frascati Asola Cap Norfeu
82
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Umbria
relation depicts
type print
type collectable
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:depicts ?y . ?s rdf:type ontology:print . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s property:depicts ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?e = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:depicts resource:Umbria . { ?o rdf:type ?f . VALUES ( ?f ) { ( ontology:print ) ( ontology:collectable ) } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q225850 Q7965075
P106
Q12737077
USER
Which occupations do Walter Hargesheimer or Sven Nilsson do for a living ?
OR((Q7965075,P106,c(Q12737077)), (Q225850,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7965075
relation P106
action find
entity Q225850
relation P106
type Q12737077
{'OR': [['Q7965075', 'P106', {'concept': 'Q12737077'}], ['Q225850', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?l ) { ( resource:Q7965075 ) ( resource:Q225850 ) } . ?l property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
Sven Nilsson Walter Hargesheimer
action filter_type
action union
action find
entity Walter Hargesheimer
relation occupation
action find
entity Sven Nilsson
relation occupation
type occupation
{'OR': [['Walter Hargesheimer', 'occupation', {'concept': 'occupation'}], ['Sven Nilsson', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?l ) { ( resource:Walter_Hargesheimer ) ( resource:Sven_Nilsson ) } . ?l property:occupation ?h } . ?h rdf:type ontology:occupation }
[]
occupation
Q1622272 Q4773904 Q17488316 Q3621491 Q1225716 Q5137571 Q19204627 Q42603 Q350979
SYSTEM
university teacher, anthropologist, prehistorian, archaeologist, ornithologist, basketball coach, American football player, priest, zoologist
Q1622272 Q4773904 Q17488316 Q3621491 Q1225716 Q5137571 Q19204627 Q42603 Q350979
OR((Q7965075,P106,c(Q12737077)), (Q225850,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7965075
relation P106
action find
entity Q225850
relation P106
type Q12737077
Walter Hargesheimer or Sven Nilsson do for a living an [ANSWERS]
{'OR': [['Q7965075', 'P106', {'concept': 'Q12737077'}], ['Q225850', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?l ) { ( resource:Q7965075 ) ( resource:Q225850 ) } . ?l property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
university teacher anthropologist prehistorian archaeologist ornithologist basketball coach American football player priest zoologist
Walter Hargesheimer or Sven Nilsson do for a living an university teacher, anthropologist, prehistorian, archaeologist, ornithologist, basketball coach, American football player, priest and zoologist
university teacher anthropologist prehistorian archaeologist ornithologist basketball coach American football player priest zoologist
action filter_type
action union
action find
entity Walter Hargesheimer
relation occupation
action find
entity Sven Nilsson
relation occupation
type occupation
{'OR': [['Walter Hargesheimer', 'occupation', {'concept': 'occupation'}], ['Sven Nilsson', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?l ) { ( resource:Walter_Hargesheimer ) ( resource:Sven_Nilsson ) } . ?l property:occupation ?h } . ?h rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17488316
P361
Q12737077
USER
Which occupation is a component of that one ?
(c(Q12737077),P361,Q17488316)
action filter_type
action find_reverse
entity Q17488316
relation P361
type Q12737077
[{'concept': 'Q12737077'}, 'P361', 'Q17488316']
SELECT DISTINCT ?b WHERE { ?b property:P361 resource:Q17488316 . ?b rdf:type ontology:Q12737077 }
prehistorian
action filter_type
action find_reverse
entity prehistorian
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'prehistorian']
SELECT DISTINCT ?b WHERE { ?b property:part_of resource:prehistorian . ?b rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q3621491
SYSTEM
Did you mean archaeologist ?
Q1622272 Q4773904 Q17488316 Q3621491 Q1225716 Q5137571 Q19204627 Q42603 Q350979
(c(Q12737077),P361,Q1622272) (c(Q12737077),P361,Q4773904) (c(Q12737077),P361,Q17488316) (c(Q12737077),P361,Q3621491) (c(Q12737077),P361,Q1225716) (c(Q12737077),P361,Q5137571) (c(Q12737077),P361,Q19204627) (c(Q12737077),P361,Q42603) (c(Q12737077),P361,Q350979)
[ANSWER]
[{'concept': 'Q12737077'}, 'P361', 'Q1622272'] [{'concept': 'Q12737077'}, 'P361', 'Q4773904'] [{'concept': 'Q12737077'}, 'P361', 'Q17488316'] [{'concept': 'Q12737077'}, 'P361', 'Q3621491'] [{'concept': 'Q12737077'}, 'P361', 'Q1225716'] [{'concept': 'Q12737077'}, 'P361', 'Q5137571'] [{'concept': 'Q12737077'}, 'P361', 'Q19204627'] [{'concept': 'Q12737077'}, 'P361', 'Q42603'] [{'concept': 'Q12737077'}, 'P361', 'Q350979']
SELECT DISTINCT ?b WHERE { ?b property:P361 resource:Q17488316 . ?b rdf:type ontology:Q12737077 }
university teacher anthropologist prehistorian archaeologist ornithologist basketball coach American football player priest zoologist
Did you mean archaeologist ?
archaeologist
[{'concept': 'occupation'}, 'part of', 'university teacher'] [{'concept': 'occupation'}, 'part of', 'anthropologist'] [{'concept': 'occupation'}, 'part of', 'prehistorian'] [{'concept': 'occupation'}, 'part of', 'archaeologist'] [{'concept': 'occupation'}, 'part of', 'ornithologist'] [{'concept': 'occupation'}, 'part of', 'basketball coach'] [{'concept': 'occupation'}, 'part of', 'American football player'] [{'concept': 'occupation'}, 'part of', 'priest'] [{'concept': 'occupation'}, 'part of', 'zoologist']
SELECT DISTINCT ?b WHERE { ?b property:part_of resource:prehistorian . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant prehistorian. Could you tell me the answer for that?
(c(Q12737077),P361,Q17488316)
Q17488316
[{'concept': 'Q12737077'}, 'P361', 'Q17488316']
[{'concept': 'occupation'}, 'part of', 'prehistorian']
[]
Q25915497
SYSTEM
archaeologist of the Roman provinces
Q25915497
(c(Q12737077),P361,Q17488316)
action filter_type
action find_reverse
entity Q17488316
relation P361
type Q12737077
The [ANSWER] is a component of that one
[{'concept': 'Q12737077'}, 'P361', 'Q17488316']
SELECT DISTINCT ?b WHERE { ?b property:P361 resource:Q17488316 . ?b rdf:type ontology:Q12737077 }
archaeologist of the Roman provinces
The archaeologist of the Roman provinces is a component of that one
archaeologist of the Roman provinces
action filter_type
action find_reverse
entity prehistorian
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'prehistorian']
SELECT DISTINCT ?b WHERE { ?b property:part_of resource:prehistorian . ?b rdf:type ontology:occupation }
[]