Simple Question (Direct)
Simple Question
Q1810364
P734
Q82799
USER
Which name is associated with Henry Lehman ?
(Q1810364,P734,c(Q82799))
action filter_type
action find
entity Q1810364
relation P734
type Q82799
['Q1810364', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q1810364 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Henry Lehman
action filter_type
action find
entity Henry Lehman
relation family name
type name
['Henry Lehman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Henry_Lehman property:family_name ?o . ?o rdf:type ontology:name }
[]
name
Q15860284
SYSTEM
Lehman
Q15860284
(Q1810364,P734,c(Q82799))
action filter_type
action find
entity Q1810364
relation P734
type Q82799
[ANSWER] is associated with Henry [ANSWER]
['Q1810364', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q1810364 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Lehman
Lehman is associated with Henry Lehman
Lehman
action filter_type
action find
entity Henry Lehman
relation family name
type name
['Henry Lehman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Henry_Lehman property:family_name ?o . ?o rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1810364
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Henry Lehman ?
(Q1810364,P27,c(Q15617994))
action filter_type
action find
entity Q1810364
relation P27
type Q15617994
['Q1810364', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1810364 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Henry Lehman
action filter_type
action find
entity Henry Lehman
relation country of citizenship
type designation for an administrative territorial entity
['Henry Lehman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Henry_Lehman property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1810364,P27,c(Q15617994))
action filter_type
action find
entity Q1810364
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Henry Lehman
['Q1810364', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1810364 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of citizenship of Henry Lehman
United States of America
action filter_type
action find
entity Henry Lehman
relation country of citizenship
type designation for an administrative territorial entity
['Henry Lehman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Henry_Lehman property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q1792379 Q340169
USER
Which names are expressed in min number of art genres or medias ?
(c(Q1792379)|c(Q340169),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?s WHERE { { ?w property:P180 ?s . ?s rdf:type ontology:Q82799 . ?w rdf:type ontology:Q1792379 } UNION { ?w property:P180 ?s . ?s rdf:type ontology:Q82799 . ?w rdf:type ontology:Q340169 } } GROUP BY ?s } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?o WHERE { ?p rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?o } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?s WHERE { { ?w property:depicts ?s . ?s rdf:type ontology:name . ?w rdf:type ontology:art_genre } UNION { ?w property:depicts ?s . ?s rdf:type ontology:name . ?w rdf:type ontology:media } } GROUP BY ?s } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?o WHERE { ?p rdf:type ?e . VALUES ( ?e ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?o } }
[]
name art genre media
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q6453151 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q1865281 Q1192868 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q1792379)|c(Q340169),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
[ANSWERS] are expressed in min number of art genres or medias
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?s WHERE { { ?w property:P180 ?s . ?s rdf:type ontology:Q82799 . ?w rdf:type ontology:Q1792379 } UNION { ?w property:P180 ?s . ?s rdf:type ontology:Q82799 . ?w rdf:type ontology:Q340169 } } GROUP BY ?s } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?o WHERE { ?p rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?o } }
octopus Cynara scolymus toad mule wolf Partridge sugarcane shrimp eagle butterfly trout cattle goose cannoneer leek peacock fox raven hawk frog whale clam reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
Leek, magi and fish are expressed in min number of art genres or medias
leek magi fish
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?s WHERE { { ?w property:depicts ?s . ?s rdf:type ontology:name . ?w rdf:type ontology:art_genre } UNION { ?w property:depicts ?s . ?s rdf:type ontology:name . ?w rdf:type ontology:media } } GROUP BY ?s } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?o WHERE { ?p rdf:type ?e . VALUES ( ?e ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?o } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q340169 Q3305213
USER
Which names are demonstrated in min number of medias or paintings ?
(c(Q340169)|c(Q3305213),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?c rdf:type ?t } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?q WHERE { { ?l property:P180 ?q . ?q rdf:type ontology:Q82799 . ?l rdf:type ontology:Q3305213 } UNION { ?l property:P180 ?q . ?q rdf:type ontology:Q82799 . ?l rdf:type ontology:Q340169 } } GROUP BY ?q } . FILTER ( ?o = ?k ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:painting ) ( ontology:media ) } . ?c rdf:type ?t } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?q WHERE { { ?l property:depicts ?q . ?q rdf:type ontology:name . ?l rdf:type ontology:painting } UNION { ?l property:depicts ?q . ?q rdf:type ontology:name . ?l rdf:type ontology:media } } GROUP BY ?q } . FILTER ( ?o = ?k ) }
[]
name media painting
Q1807269 Q134609 Q11946202
SYSTEM
leek, Cynara scolymus, butterfly
Q13219075 Q134609 Q6453151 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q11946202 Q2258881 Q4767951 Q16529344 Q713019 Q1807269 Q8331 Q846664 Q3116510 Q1865281 Q1192868 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q858243 Q190294 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q5070208 Q10968813
(c(Q340169)|c(Q3305213),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
[ANSWERS] are demonstrated in min number of medias or paintings
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } . ?c rdf:type ?t } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?q WHERE { { ?l property:P180 ?q . ?q rdf:type ontology:Q82799 . ?l rdf:type ontology:Q3305213 } UNION { ?l property:P180 ?q . ?q rdf:type ontology:Q82799 . ?l rdf:type ontology:Q340169 } } GROUP BY ?q } . FILTER ( ?o = ?k ) }
octopus Cynara scolymus toad mule wolf Partridge sugarcane shrimp butterfly trout cattle goose cannoneer leek fox hawk frog whale clam magpie slug lizard antelope Yellow jacket Tree squirrel mouflon vulture pheasant thistle snail Scipio locust wasp kangaroo jay
Leek, Cynara scolymus and butterfly are demonstrated in min number of medias or paintings
leek Cynara scolymus butterfly
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?r WHERE { VALUES ( ?t ) { ( ontology:painting ) ( ontology:media ) } . ?c rdf:type ?t } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?q WHERE { { ?l property:depicts ?q . ?q rdf:type ontology:name . ?l rdf:type ontology:painting } UNION { ?l property:depicts ?q . ?q rdf:type ontology:name . ?l rdf:type ontology:media } } GROUP BY ?q } . FILTER ( ?o = ?k ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q68461 Q1810364
P7
Q502895
USER
Which people are siblings of Henry Lehman or Frederick William III, Duke of Saxe-Altenburg ?
OR((c(Q502895),P7,Q1810364), (c(Q502895),P7,Q68461))
action filter_type
action union
action find_reverse
entity Q1810364
relation P7
action find_reverse
entity Q68461
relation P7
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q1810364'], [{'concept': 'Q502895'}, 'P7', 'Q68461']]}
SELECT DISTINCT ?w WHERE { { ?w property:P7 ?a . VALUES ( ?a ) { ( resource:Q1810364 ) ( resource:Q68461 ) } } . ?w rdf:type ontology:Q502895 }
Frederick William III, Duke of Saxe-Altenburg Henry Lehman
action filter_type
action union
action find_reverse
entity Henry Lehman
relation brother
action find_reverse
entity Frederick William III, Duke of Saxe-Altenburg
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Henry Lehman'], [{'concept': 'common name'}, 'brother', 'Frederick William III, Duke of Saxe-Altenburg']]}
SELECT DISTINCT ?w WHERE { { ?w property:brother ?a . VALUES ( ?a ) { ( resource:Henry_Lehman ) ( resource:Frederick_William_III,_Duke_of_Saxe-Altenburg ) } } . ?w rdf:type ontology:common_name }
[]
common name
Q15080212 Q323033 Q15080210
SYSTEM
Mayer Lehman, Johanna Magdalena of Saxe-Altenburg, Emanuel Lehman
Q15080212 Q323033 Q15080210
OR((c(Q502895),P7,Q1810364), (c(Q502895),P7,Q68461))
action filter_type
action union
action find_reverse
entity Q1810364
relation P7
action find_reverse
entity Q68461
relation P7
type Q502895
[ANSWERS] are siblings of Henry Lehman or Frederick William III, Duke of Saxe-Altenburg
{'OR': [[{'concept': 'Q502895'}, 'P7', 'Q1810364'], [{'concept': 'Q502895'}, 'P7', 'Q68461']]}
SELECT DISTINCT ?w WHERE { { ?w property:P7 ?a . VALUES ( ?a ) { ( resource:Q1810364 ) ( resource:Q68461 ) } } . ?w rdf:type ontology:Q502895 }
Mayer Lehman Johanna Magdalena of Saxe-Altenburg Emanuel Lehman
Mayer Lehman, Johanna Magdalena of Saxe-Altenburg and Emanuel Lehman are siblings of Henry Lehman or Frederick William III, Duke of Saxe-Altenburg
Mayer Lehman Johanna Magdalena of Saxe-Altenburg Emanuel Lehman
action filter_type
action union
action find_reverse
entity Henry Lehman
relation brother
action find_reverse
entity Frederick William III, Duke of Saxe-Altenburg
relation brother
type common name
{'OR': [[{'concept': 'common name'}, 'brother', 'Henry Lehman'], [{'concept': 'common name'}, 'brother', 'Frederick William III, Duke of Saxe-Altenburg']]}
SELECT DISTINCT ?w WHERE { { ?w property:brother ?a . VALUES ( ?a ) { ( resource:Henry_Lehman ) ( resource:Frederick_William_III,_Duke_of_Saxe-Altenburg ) } } . ?w rdf:type ontology:common_name }
[]