Simple Question (Direct)
Simple Question
Q328929
P734
Q82799
USER
Which name is associated with Sean Parker ?
(Q328929,P734,c(Q82799))
action filter_type
action find
entity Q328929
relation P734
type Q82799
['Q328929', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q328929 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Sean Parker
action filter_type
action find
entity Sean Parker
relation family name
type name
['Sean Parker', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Sean_Parker property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q1628041
SYSTEM
Parker
Q1628041
(Q328929,P734,c(Q82799))
action filter_type
action find
entity Q328929
relation P734
type Q82799
Sean [ANSWER] is associated with Sean [ANSWER]
['Q328929', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q328929 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Parker
Sean Parker is associated with Sean Parker
Parker
action filter_type
action find
entity Sean Parker
relation family name
type name
['Sean Parker', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Sean_Parker property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q328929
P26
Q502895
USER
Who is married to that one ?
(Q1628041,P26,c(Q502895))
action filter_type
action find
entity Q328929
relation P26
type Q502895
['Q1628041', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q328929 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Sean Parker
action filter_type
action find
entity Sean Parker
relation spouse
type common name
['Parker', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Sean_Parker property:spouse ?x . ?x rdf:type ontology:common_name }
[]
common name
Q22568606
SYSTEM
Alexandra Lenas
Q22568606
(Q1628041,P26,c(Q502895))
action filter_type
action find
entity Q328929
relation P26
type Q502895
[ANSWER] is married to that one
['Q1628041', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q328929 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Alexandra Lenas
Alexandra Lenas is married to that one
Alexandra Lenas
action filter_type
action find
entity Sean Parker
relation spouse
type common name
['Parker', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Sean_Parker property:spouse ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q328929
P161
Q201658
USER
Which film genre has Sean Parker as actor ?
(c(Q201658),P161,Q328929)
action filter_type
action find_reverse
entity Q328929
relation P161
type Q201658
[{'concept': 'Q201658'}, 'P161', 'Q328929']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q328929 . ?x rdf:type ontology:Q201658 }
Sean Parker
action filter_type
action find_reverse
entity Sean Parker
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Sean Parker']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Sean_Parker . ?x rdf:type ontology:film_genre }
[]
film genre
Q20740335
SYSTEM
World Wide What?
Q20740335
(c(Q201658),P161,Q328929)
action filter_type
action find_reverse
entity Q328929
relation P161
type Q201658
World Wide What has Sean Parker as actor
[{'concept': 'Q201658'}, 'P161', 'Q328929']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q328929 . ?x rdf:type ontology:Q201658 }
World Wide What?
World Wide What has Sean Parker as actor
World Wide What?
action filter_type
action find_reverse
entity Sean Parker
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Sean Parker']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Sean_Parker . ?x rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22568606
P21
Q290
USER
What is the sex of Alexandra Lenas ?
(Q22568606,P21,c(Q290))
action filter_type
action find
entity Q22568606
relation P21
type Q290
['Q22568606', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q22568606 property:P21 ?s . ?s rdf:type ontology:Q290 }
Alexandra Lenas
action filter_type
action find
entity Alexandra Lenas
relation gender
type sex
['Alexandra Lenas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Alexandra_Lenas property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q22568606,P21,c(Q290))
action filter_type
action find
entity Q22568606
relation P21
type Q290
The sex of Alexandra Lenas is the [ANSWER]
['Q22568606', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q22568606 property:P21 ?s . ?s rdf:type ontology:Q290 }
female
The sex of Alexandra Lenas is the female
female
action filter_type
action find
entity Alexandra Lenas
relation gender
type sex
['Alexandra Lenas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Alexandra_Lenas property:gender ?s . ?s rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3303378 Q328929
P112
Q79913
USER
Which non-governmental organizations were founded by Sean Parker or David Jay ?
OR((c(Q79913),P112,Q328929), (c(Q79913),P112,Q3303378))
action filter_type
action union
action find_reverse
entity Q328929
relation P112
action find_reverse
entity Q3303378
relation P112
type Q79913
{'OR': [[{'concept': 'Q79913'}, 'P112', 'Q328929'], [{'concept': 'Q79913'}, 'P112', 'Q3303378']]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?x ) { ( resource:Q328929 ) ( resource:Q3303378 ) } . ?h property:P112 ?x } . ?h rdf:type ontology:Q79913 }
David Jay Sean Parker
action filter_type
action union
action find_reverse
entity Sean Parker
relation founder
action find_reverse
entity David Jay
relation founder
type non-governmental organization
{'OR': [[{'concept': 'non-governmental organization'}, 'founder', 'Sean Parker'], [{'concept': 'non-governmental organization'}, 'founder', 'David Jay']]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?x ) { ( resource:Sean_Parker ) ( resource:David_Jay ) } . ?h property:founder ?x } . ?h rdf:type ontology:non-governmental_organization }
[]
non-governmental organization
Q15064314 Q22188425
SYSTEM
FWD.us, Asexual Visibility and Education Network
Q15064314 Q22188425
OR((c(Q79913),P112,Q328929), (c(Q79913),P112,Q3303378))
action filter_type
action union
action find_reverse
entity Q328929
relation P112
action find_reverse
entity Q3303378
relation P112
type Q79913
[ANSWERS] were founded by Sean Parker or David Jay
{'OR': [[{'concept': 'Q79913'}, 'P112', 'Q328929'], [{'concept': 'Q79913'}, 'P112', 'Q3303378']]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?x ) { ( resource:Q328929 ) ( resource:Q3303378 ) } . ?h property:P112 ?x } . ?h rdf:type ontology:Q79913 }
FWD.us Asexual Visibility and Education Network
FWD.us and Asexual Visibility and Education Network were founded by Sean Parker or David Jay
FWD.us Asexual Visibility and Education Network
action filter_type
action union
action find_reverse
entity Sean Parker
relation founder
action find_reverse
entity David Jay
relation founder
type non-governmental organization
{'OR': [[{'concept': 'non-governmental organization'}, 'founder', 'Sean Parker'], [{'concept': 'non-governmental organization'}, 'founder', 'David Jay']]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?x ) { ( resource:Sean_Parker ) ( resource:David_Jay ) } . ?h property:founder ?x } . ?h rdf:type ontology:non-governmental_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q328929
P112
Q79913
USER
How many non-governmental organizations were started by Sean Parker ?
(c(Q79913),P112,Q328929)
action count
action filter_type
action find_reverse
entity Q328929
relation P112
type Q79913
[{'concept': 'Q79913'}, 'P112', 'Q328929']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ontology:Q79913 . ?q property:P112 resource:Q328929 }
Sean Parker
action count
action filter_type
action find_reverse
entity Sean Parker
relation founder
type non-governmental organization
[{'concept': 'non-governmental organization'}, 'founder', 'Sean Parker']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ontology:non-governmental_organization . ?q property:founder resource:Sean_Parker }
[]
non-governmental organization
SYSTEM
1
Q15064314
(c(Q79913),P112,Q328929)
action count
action filter_type
action find_reverse
entity Q328929
relation P112
type Q79913
[ANSWER]
[{'concept': 'Q79913'}, 'P112', 'Q328929']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ontology:Q79913 . ?q property:P112 resource:Q328929 }
FWD.us
1
action count
action filter_type
action find_reverse
entity Sean Parker
relation founder
type non-governmental organization
[{'concept': 'non-governmental organization'}, 'founder', 'Sean Parker']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ontology:non-governmental_organization . ?q property:founder resource:Sean_Parker }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q328929
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
action filter_type
action find
entity Q328929
relation P27
type Q15617994
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q328929 property:P27 ?k }
Sean Parker
action filter_type
action find
entity Sean Parker
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sean_Parker property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
action filter_type
action find
entity Q328929
relation P27
type Q15617994
The [ANSWER] is the native country of that person
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q328929 property:P27 ?k }
United States of America
The United States of America is the native country of that person
United States of America
action filter_type
action find
entity Sean Parker
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sean_Parker property:country_of_citizenship ?k }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q514160 Q61
P36
Q56061
USER
Does that administrative territory consists of Weiser and Washington, D.C. as its capital ?
(Q30,P36,Q514160) (Q30,P36,Q61)
action is_in
entity Q30
action intersection
action find_reverse
entity Q514160
relation P36
action find_reverse
entity Q61
relation P36
['Q30', 'P36', 'Q514160'] ['Q30', 'P36', 'Q61']
ASK WHERE { resource:Q30 property:P36 resource:Q514160 . resource:Q30 property:P36 resource:Q61 }
United States of America Weiser Washington, D.C.
action is_in
entity United States of America
action intersection
action find_reverse
entity Weiser
relation capital
action find_reverse
entity Washington, D.C.
relation capital
['United States of America', 'capital', 'Weiser'] ['United States of America', 'capital', 'Washington, D.C.']
ASK WHERE { resource:United_States_of_America property:capital resource:Weiser . resource:United_States_of_America property:capital resource:Washington,_D.C. }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q30,P36,Q514160) (Q30,P36,Q61)
action is_in
entity Q30
action intersection
action find_reverse
entity Q514160
relation P36
action find_reverse
entity Q61
relation P36
[ANSWER]
['Q30', 'P36', 'Q514160'] ['Q30', 'P36', 'Q61']
ASK WHERE { resource:Q30 property:P36 resource:Q514160 . resource:Q30 property:P36 resource:Q61 }
NO and YES respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Weiser
relation capital
action find_reverse
entity Washington, D.C.
relation capital
['United States of America', 'capital', 'Weiser'] ['United States of America', 'capital', 'Washington, D.C.']
ASK WHERE { resource:United_States_of_America property:capital resource:Weiser . resource:United_States_of_America property:capital resource:Washington,_D.C. }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q15064314 Q5284
P112
Q502895
USER
FWD.us ?
(Q15064314,P112,Q5284)
action is_in
entity Q5284
action find
entity Q15064314
relation P112
['Q15064314', 'P112', 'Q5284']
ASK WHERE { resource:Q15064314 property:P112 resource:Q5284 }
FWD.us Bill Gates
action is_in
entity Bill Gates
action find
entity FWD.us
relation founder
['FWD.us', 'founder', 'Bill Gates']
ASK WHERE { resource:FWD.us property:founder resource:Bill_Gates }
[]
common name
SYSTEM
YES
(Q15064314,P112,Q5284)
action is_in
entity Q5284
action find
entity Q15064314
relation P112
[ANSWER]
['Q15064314', 'P112', 'Q5284']
ASK WHERE { resource:Q15064314 property:P112 resource:Q5284 }
Yes
action is_in
entity Bill Gates
action find
entity FWD.us
relation founder
['FWD.us', 'founder', 'Bill Gates']
ASK WHERE { resource:FWD.us property:founder resource:Bill_Gates }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q328929 Q26697805 Q82594
P106
Q12737077
USER
Does Sean Parker have the profession as mayor of Fresno de la Vega and computer scientist ?
(Q328929,P106,Q26697805) (Q328929,P106,Q82594)
action is_in
entity Q328929
action intersection
action find_reverse
entity Q26697805
relation P106
action find_reverse
entity Q82594
relation P106
['Q328929', 'P106', 'Q26697805'] ['Q328929', 'P106', 'Q82594']
ASK WHERE { resource:Q328929 property:P106 resource:Q82594 . resource:Q328929 property:P106 resource:Q26697805 }
Sean Parker mayor of Fresno de la Vega computer scientist
action is_in
entity Sean Parker
action intersection
action find_reverse
entity mayor of Fresno de la Vega
relation occupation
action find_reverse
entity computer scientist
relation occupation
['Sean Parker', 'occupation', 'mayor of Fresno de la Vega'] ['Sean Parker', 'occupation', 'computer scientist']
ASK WHERE { resource:Sean_Parker property:occupation resource:computer_scientist . resource:Sean_Parker property:occupation resource:mayor_of_Fresno_de_la_Vega }
[]
occupation
SYSTEM
NO and YES respectively
(Q328929,P106,Q26697805) (Q328929,P106,Q82594)
action is_in
entity Q328929
action intersection
action find_reverse
entity Q26697805
relation P106
action find_reverse
entity Q82594
relation P106
[ANSWER]
['Q328929', 'P106', 'Q26697805'] ['Q328929', 'P106', 'Q82594']
ASK WHERE { resource:Q328929 property:P106 resource:Q82594 . resource:Q328929 property:P106 resource:Q26697805 }
NO and YES respectively
action is_in
entity Sean Parker
action intersection
action find_reverse
entity mayor of Fresno de la Vega
relation occupation
action find_reverse
entity computer scientist
relation occupation
['Sean Parker', 'occupation', 'mayor of Fresno de la Vega'] ['Sean Parker', 'occupation', 'computer scientist']
ASK WHERE { resource:Sean_Parker property:occupation resource:computer_scientist . resource:Sean_Parker property:occupation resource:mayor_of_Fresno_de_la_Vega }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q49285
P941
Q502895 Q2198855 Q3305213
USER
Which people inspired more number of cultural movements or paintings than Sally Ride ?
(c(Q2198855)|c(Q3305213),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q49285
relation P941
type Q2198855
type Q3305213
[[{'concept': 'Q2198855'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:P941 resource:Q49285 . { { ?s rdf:type ontology:Q2198855 } UNION { ?s rdf:type ontology:Q3305213 } } } } . FILTER ( ?k > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?r WHERE { { ?f property:P941 ?r . ?r rdf:type ontology:Q502895 . ?f rdf:type ontology:Q2198855 } UNION { ?f property:P941 ?r . ?f rdf:type ontology:Q3305213 . ?r rdf:type ontology:Q502895 } } GROUP BY ?r } }
Sally Ride
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action count
action filter_multi_types
action find_reverse
entity Sally Ride
relation inspired by
type cultural movement
type painting
[[{'concept': 'cultural movement'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:inspired_by resource:Sally_Ride . { { ?s rdf:type ontology:cultural_movement } UNION { ?s rdf:type ontology:painting } } } } . FILTER ( ?k > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?r WHERE { { ?f property:inspired_by ?r . ?r rdf:type ontology:common_name . ?f rdf:type ontology:cultural_movement } UNION { ?f property:inspired_by ?r . ?f rdf:type ontology:painting . ?r rdf:type ontology:common_name } } GROUP BY ?r } }
[]
common name cultural movement painting
Q334001 Q154545 Q164823
SYSTEM
Thomas Cole, Léopold Sédar Senghor, Girolamo Savonarola
Q334001 Q154545 Q164823
(c(Q2198855)|c(Q3305213),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q49285
relation P941
type Q2198855
type Q3305213
[ANSWERS] inspired more number of cultural movements or paintings than Sally Ride
[[{'concept': 'Q2198855'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:P941 resource:Q49285 . { { ?s rdf:type ontology:Q2198855 } UNION { ?s rdf:type ontology:Q3305213 } } } } . FILTER ( ?k > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?r WHERE { { ?f property:P941 ?r . ?r rdf:type ontology:Q502895 . ?f rdf:type ontology:Q2198855 } UNION { ?f property:P941 ?r . ?f rdf:type ontology:Q3305213 . ?r rdf:type ontology:Q502895 } } GROUP BY ?r } }
Thomas Cole Léopold Sédar Senghor Girolamo Savonarola
Thomas Cole, Léopold Sédar Senghor and Girolamo Savonarola inspired more number of cultural movements or paintings than Sally Ride
Thomas Cole Léopold Sédar Senghor Girolamo Savonarola
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action count
action filter_multi_types
action find_reverse
entity Sally Ride
relation inspired by
type cultural movement
type painting
[[{'concept': 'cultural movement'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s property:inspired_by resource:Sally_Ride . { { ?s rdf:type ontology:cultural_movement } UNION { ?s rdf:type ontology:painting } } } } . FILTER ( ?k > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) ?r WHERE { { ?f property:inspired_by ?r . ?r rdf:type ontology:common_name . ?f rdf:type ontology:cultural_movement } UNION { ?f property:inspired_by ?r . ?f rdf:type ontology:painting . ?r rdf:type ontology:common_name } } GROUP BY ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q163118
P941
Q502895 Q2198855 Q3305213
USER
And what about Marguerite Yourcenar?
(c(Q2198855)|c(Q3305213),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q163118
relation P941
type Q2198855
type Q3305213
[[{'concept': 'Q2198855'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P941 resource:Q163118 . { { ?f rdf:type ontology:Q2198855 } UNION { ?f rdf:type ontology:Q3305213 } } } } . FILTER ( ?y > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?u WHERE { { ?m property:P941 ?u . ?u rdf:type ontology:Q502895 . ?m rdf:type ontology:Q3305213 } UNION { ?m property:P941 ?u . ?u rdf:type ontology:Q502895 . ?m rdf:type ontology:Q2198855 } } GROUP BY ?u } }
Marguerite Yourcenar
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action count
action filter_multi_types
action find_reverse
entity Marguerite Yourcenar
relation inspired by
type cultural movement
type painting
[[{'concept': 'cultural movement'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:inspired_by resource:Marguerite_Yourcenar . { { ?f rdf:type ontology:cultural_movement } UNION { ?f rdf:type ontology:painting } } } } . FILTER ( ?y > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?u WHERE { { ?m property:inspired_by ?u . ?u rdf:type ontology:common_name . ?m rdf:type ontology:painting } UNION { ?m property:inspired_by ?u . ?u rdf:type ontology:common_name . ?m rdf:type ontology:cultural_movement } } GROUP BY ?u } }
[]
common name cultural movement painting
Q334001 Q154545 Q164823
SYSTEM
Thomas Cole, Léopold Sédar Senghor, Girolamo Savonarola
Q334001 Q154545 Q164823
(c(Q2198855)|c(Q3305213),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q163118
relation P941
type Q2198855
type Q3305213
[ANSWERS]
[[{'concept': 'Q2198855'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:P941 resource:Q163118 . { { ?f rdf:type ontology:Q2198855 } UNION { ?f rdf:type ontology:Q3305213 } } } } . FILTER ( ?y > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?u WHERE { { ?m property:P941 ?u . ?u rdf:type ontology:Q502895 . ?m rdf:type ontology:Q3305213 } UNION { ?m property:P941 ?u . ?u rdf:type ontology:Q502895 . ?m rdf:type ontology:Q2198855 } } GROUP BY ?u } }
Thomas Cole Léopold Sédar Senghor Girolamo Savonarola
Thomas Cole Léopold Sédar Senghor Girolamo Savonarola
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action count
action filter_multi_types
action find_reverse
entity Marguerite Yourcenar
relation inspired by
type cultural movement
type painting
[[{'concept': 'cultural movement'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { ?f property:inspired_by resource:Marguerite_Yourcenar . { { ?f rdf:type ontology:cultural_movement } UNION { ?f rdf:type ontology:painting } } } } . FILTER ( ?y > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?u WHERE { { ?m property:inspired_by ?u . ?u rdf:type ontology:common_name . ?m rdf:type ontology:painting } UNION { ?m property:inspired_by ?u . ?u rdf:type ontology:common_name . ?m rdf:type ontology:cultural_movement } } GROUP BY ?u } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3056425 Q334001
P27
Q15617994
USER
Which administrative territories are Thomas Cole or Eric Tigerstedt an inhabitant of ?
OR((Q334001,P27,c(Q15617994)), (Q3056425,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q334001
relation P27
action find
entity Q3056425
relation P27
type Q15617994
{'OR': [['Q334001', 'P27', {'concept': 'Q15617994'}], ['Q3056425', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?o ) { ( resource:Q334001 ) ( resource:Q3056425 ) } . ?o property:P27 ?z } . ?z rdf:type ontology:Q15617994 }
Eric Tigerstedt Thomas Cole
action filter_type
action union
action find
entity Thomas Cole
relation country of citizenship
action find
entity Eric Tigerstedt
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thomas Cole', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Eric Tigerstedt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?o ) { ( resource:Thomas_Cole ) ( resource:Eric_Tigerstedt ) } . ?o property:country_of_citizenship ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q30 Q145
SYSTEM
Finland, United States of America, United Kingdom
Q33 Q30 Q145
OR((Q334001,P27,c(Q15617994)), (Q3056425,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q334001
relation P27
action find
entity Q3056425
relation P27
type Q15617994
[ANSWERS] are Thomas Cole or Eric Tigerstedt an inhabitant of
{'OR': [['Q334001', 'P27', {'concept': 'Q15617994'}], ['Q3056425', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?o ) { ( resource:Q334001 ) ( resource:Q3056425 ) } . ?o property:P27 ?z } . ?z rdf:type ontology:Q15617994 }
Finland United States of America United Kingdom
Finland, United States of America and United Kingdom are Thomas Cole or Eric Tigerstedt an inhabitant of
Finland United States of America United Kingdom
action filter_type
action union
action find
entity Thomas Cole
relation country of citizenship
action find
entity Eric Tigerstedt
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thomas Cole', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Eric Tigerstedt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?o ) { ( resource:Thomas_Cole ) ( resource:Eric_Tigerstedt ) } . ?o property:country_of_citizenship ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]