Simple Question (Direct)
Simple Question
Q16025463
P39
Q12737077
USER
Which occupation was a position held by Anatole Cluzan ?
(Q16025463,P39,c(Q12737077))
action filter_type
action find
entity Q16025463
relation P39
type Q12737077
['Q16025463', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q16025463 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Anatole Cluzan
action filter_type
action find
entity Anatole Cluzan
relation position held
type occupation
['Anatole Cluzan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Anatole_Cluzan property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q16025463,P39,c(Q12737077))
action filter_type
action find
entity Q16025463
relation P39
type Q12737077
The member of the French National Assembly was a position held by Anatole Cluzan
['Q16025463', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q16025463 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
member of the French National Assembly
The member of the French National Assembly was a position held by Anatole Cluzan
member of the French National Assembly
action filter_type
action find
entity Anatole Cluzan
relation position held
type occupation
['Anatole Cluzan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Anatole_Cluzan property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16025463
P106
Q12737077
USER
What is the profession of that person ?
(Q3044918,P106,c(Q12737077))
action filter_type
action find
entity Q16025463
relation P106
type Q12737077
['Q3044918', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q16025463 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Anatole Cluzan
action filter_type
action find
entity Anatole Cluzan
relation occupation
type occupation
['member of the French\xa0National Assembly', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Anatole_Cluzan property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3044918,P106,c(Q12737077))
action filter_type
action find
entity Q16025463
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q3044918', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q16025463 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
politician
The profession of that person is a politician
politician
action filter_type
action find
entity Anatole Cluzan
relation occupation
type occupation
['member of the French\xa0National Assembly', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Anatole_Cluzan property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3378833 Q16025463
P106
Q12737077
USER
Or Phil Walter?
OR((Q16025463,P106,c(Q12737077)), (Q3378833,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16025463
relation P106
action find
entity Q3378833
relation P106
type Q12737077
{'OR': [['Q16025463', 'P106', {'concept': 'Q12737077'}], ['Q3378833', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3378833 property:P106 ?u } UNION { resource:Q16025463 property:P106 ?u } } . ?u rdf:type ontology:Q12737077 }
Phil Walter Anatole Cluzan
action filter_type
action union
action find
entity Anatole Cluzan
relation occupation
action find
entity Phil Walter
relation occupation
type occupation
{'OR': [['Anatole Cluzan', 'occupation', {'concept': 'occupation'}], ['Phil Walter', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Phil_Walter property:occupation ?u } UNION { resource:Anatole_Cluzan property:occupation ?u } } . ?u rdf:type ontology:occupation }
[]
occupation
Q82955 Q486748
SYSTEM
politician, pianist
Q82955 Q486748
OR((Q16025463,P106,c(Q12737077)), (Q3378833,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q16025463
relation P106
action find
entity Q3378833
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q16025463', 'P106', {'concept': 'Q12737077'}], ['Q3378833', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3378833 property:P106 ?u } UNION { resource:Q16025463 property:P106 ?u } } . ?u rdf:type ontology:Q12737077 }
politician pianist
politician pianist
action filter_type
action union
action find
entity Anatole Cluzan
relation occupation
action find
entity Phil Walter
relation occupation
type occupation
{'OR': [['Anatole Cluzan', 'occupation', {'concept': 'occupation'}], ['Phil Walter', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Phil_Walter property:occupation ?u } UNION { resource:Anatole_Cluzan property:occupation ?u } } . ?u rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q8863327
P106
Q502895
USER
Do Maria Bortnowska have the profession of those occupations ?
(Q8863327,P106,Q82955) (Q8863327,P106,Q486748)
action is_in
entity prev_answer
action find
entity Q8863327
relation P106
['Q8863327', 'P106', 'Q82955'] ['Q8863327', 'P106', 'Q486748']
ASK WHERE { VALUES ( ?d ) { ( resource:Q82955 ) ( resource:Q486748 ) } . resource:Q8863327 property:P106 ?d }
Maria Bortnowska
action is_in
entity prev_answer
action find
entity Maria Bortnowska
relation occupation
['Maria Bortnowska', 'occupation', 'politician'] ['Maria Bortnowska', 'occupation', 'pianist']
ASK WHERE { VALUES ( ?d ) { ( resource:politician ) ( resource:pianist ) } . resource:Maria_Bortnowska property:occupation ?d }
[]
common name
SYSTEM
NO
(Q8863327,P106,Q82955) (Q8863327,P106,Q486748)
action is_in
entity prev_answer
action find
entity Q8863327
relation P106
[ANSWER]
['Q8863327', 'P106', 'Q82955'] ['Q8863327', 'P106', 'Q486748']
ASK WHERE { VALUES ( ?d ) { ( resource:Q82955 ) ( resource:Q486748 ) } . resource:Q8863327 property:P106 ?d }
No
action is_in
entity prev_answer
action find
entity Maria Bortnowska
relation occupation
['Maria Bortnowska', 'occupation', 'politician'] ['Maria Bortnowska', 'occupation', 'pianist']
ASK WHERE { VALUES ( ?d ) { ( resource:politician ) ( resource:pianist ) } . resource:Maria_Bortnowska property:occupation ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8862951 Q8863327
P119
Q43229
USER
Which organizations are the places of burial of Maria Bortnowska or Alexander Lutze-Birk ?
OR((Q8863327,P119,c(Q43229)), (Q8862951,P119,c(Q43229)))
action filter_type
action union
action find
entity Q8863327
relation P119
action find
entity Q8862951
relation P119
type Q43229
{'OR': [['Q8863327', 'P119', {'concept': 'Q43229'}], ['Q8862951', 'P119', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Q8862951 ) ( resource:Q8863327 ) } . ?n property:P119 ?q } . ?q rdf:type ontology:Q43229 }
Alexander Lutze-Birk Maria Bortnowska
action filter_type
action union
action find
entity Maria Bortnowska
relation place of burial
action find
entity Alexander Lutze-Birk
relation place of burial
type organization
{'OR': [['Maria Bortnowska', 'place of burial', {'concept': 'organization'}], ['Alexander Lutze-Birk', 'place of burial', {'concept': 'organization'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Alexander_Lutze-Birk ) ( resource:Maria_Bortnowska ) } . ?n property:place_of_burial ?q } . ?q rdf:type ontology:organization }
[]
organization
Q168886
SYSTEM
Powązki Cemetery
Q168886
OR((Q8863327,P119,c(Q43229)), (Q8862951,P119,c(Q43229)))
action filter_type
action union
action find
entity Q8863327
relation P119
action find
entity Q8862951
relation P119
type Q43229
[ANSWER] is the places of burial of Maria Bortnowska or Alexander Lutze-Birk
{'OR': [['Q8863327', 'P119', {'concept': 'Q43229'}], ['Q8862951', 'P119', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Q8862951 ) ( resource:Q8863327 ) } . ?n property:P119 ?q } . ?q rdf:type ontology:Q43229 }
Powązki Cemetery
Powązki Cemetery is the places of burial of Maria Bortnowska or Alexander Lutze-Birk
Powązki Cemetery
action filter_type
action union
action find
entity Maria Bortnowska
relation place of burial
action find
entity Alexander Lutze-Birk
relation place of burial
type organization
{'OR': [['Maria Bortnowska', 'place of burial', {'concept': 'organization'}], ['Alexander Lutze-Birk', 'place of burial', {'concept': 'organization'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Alexander_Lutze-Birk ) ( resource:Maria_Bortnowska ) } . ?n property:place_of_burial ?q } . ?q rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q943995 Q82955
P106
Q502895
USER
Which people have the profession as politician and impresario ?
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q943995))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q943995
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q943995']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P106 resource:Q943995 . ?y property:P106 resource:Q82955 }
impresario politician
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity impresario
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'impresario']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:occupation resource:impresario . ?y property:occupation resource:politician }
[]
common name
Q16146132
SYSTEM
Cesar Ascarrunz
Q16146132
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q943995))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q943995
relation P106
type Q502895
[ANSWER] have the profession as politician and impresario
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q943995']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P106 resource:Q943995 . ?y property:P106 resource:Q82955 }
Cesar Ascarrunz
Cesar Ascarrunz have the profession as politician and impresario
Cesar Ascarrunz
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity impresario
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'impresario']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:occupation resource:impresario . ?y property:occupation resource:politician }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16146132 Q5994 Q3806379
P1303
Q34379
USER
Does Cesar Ascarrunz can play piano and Jam block ?
(Q16146132,P1303,Q5994) (Q16146132,P1303,Q3806379)
action is_in
entity Q16146132
action intersection
action find_reverse
entity Q5994
relation P1303
action find_reverse
entity Q3806379
relation P1303
['Q16146132', 'P1303', 'Q5994'] ['Q16146132', 'P1303', 'Q3806379']
ASK WHERE { resource:Q16146132 property:P1303 resource:Q3806379 . resource:Q16146132 property:P1303 resource:Q5994 }
Cesar Ascarrunz piano Jam block
action is_in
entity Cesar Ascarrunz
action intersection
action find_reverse
entity piano
relation instrument
action find_reverse
entity Jam block
relation instrument
['Cesar Ascarrunz', 'instrument', 'piano'] ['Cesar Ascarrunz', 'instrument', 'Jam block']
ASK WHERE { resource:Cesar_Ascarrunz property:instrument resource:Jam_block . resource:Cesar_Ascarrunz property:instrument resource:piano }
[]
musical instrument
SYSTEM
YES and NO respectively
(Q16146132,P1303,Q5994) (Q16146132,P1303,Q3806379)
action is_in
entity Q16146132
action intersection
action find_reverse
entity Q5994
relation P1303
action find_reverse
entity Q3806379
relation P1303
[ANSWER]
['Q16146132', 'P1303', 'Q5994'] ['Q16146132', 'P1303', 'Q3806379']
ASK WHERE { resource:Q16146132 property:P1303 resource:Q3806379 . resource:Q16146132 property:P1303 resource:Q5994 }
YES and NO respectively
action is_in
entity Cesar Ascarrunz
action intersection
action find_reverse
entity piano
relation instrument
action find_reverse
entity Jam block
relation instrument
['Cesar Ascarrunz', 'instrument', 'piano'] ['Cesar Ascarrunz', 'instrument', 'Jam block']
ASK WHERE { resource:Cesar_Ascarrunz property:instrument resource:Jam_block . resource:Cesar_Ascarrunz property:instrument resource:piano }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q486748 Q5994
P425
Q34379
USER
Does piano have pianist as the associated field of occupation ?
(Q486748,P425,Q5994)
action is_in
entity Q5994
action find
entity Q486748
relation P425
['Q486748', 'P425', 'Q5994']
ASK WHERE { resource:Q486748 property:P425 resource:Q5994 }
pianist piano
action is_in
entity piano
action find
entity pianist
relation field of this occupation
['pianist', 'field of this occupation', 'piano']
ASK WHERE { resource:pianist property:field_of_this_occupation resource:piano }
[]
musical instrument
SYSTEM
YES
(Q486748,P425,Q5994)
action is_in
entity Q5994
action find
entity Q486748
relation P425
[ANSWER]
['Q486748', 'P425', 'Q5994']
ASK WHERE { resource:Q486748 property:P425 resource:Q5994 }
Yes
action is_in
entity piano
action find
entity pianist
relation field of this occupation
['pianist', 'field of this occupation', 'piano']
ASK WHERE { resource:pianist property:field_of_this_occupation resource:piano }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q11060274 Q18783400
USER
How many occupations are demonstrated in exactly 2 prints and genres of sculpture ?
(c(Q11060274)|c(Q18783400),P180,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
value 2
[[{'concept': 'Q11060274'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?p WHERE { VALUES ( ?t ) { ( ontology:Q11060274 ) ( ontology:Q18783400 ) } . ?g rdf:type ?t } GROUP BY ?p } }
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
value 2
[[{'concept': 'print'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?p WHERE { VALUES ( ?t ) { ( ontology:print ) ( ontology:genre_of_sculpture ) } . ?g rdf:type ?t } GROUP BY ?p } }
[]
occupation print genre of sculpture
SYSTEM
2
Q131512 Q4991371
(c(Q11060274)|c(Q18783400),P180,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
value 2
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?p WHERE { VALUES ( ?t ) { ( ontology:Q11060274 ) ( ontology:Q18783400 ) } . ?g rdf:type ?t } GROUP BY ?p } }
farmer soldier
2
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
value 2
[[{'concept': 'print'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) ?p WHERE { VALUES ( ?t ) { ( ontology:print ) ( ontology:genre_of_sculpture ) } . ?g rdf:type ?t } GROUP BY ?p } }
[]