Simple Question (Direct)
Simple Question
Q352059
P734
Q82799
USER
Who has the surname Robin Cook ?
(Q352059,P734,c(Q82799))
action filter_type
action find
entity Q352059
relation P734
type Q82799
['Q352059', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q82799 . resource:Q352059 property:P734 ?n }
Robin Cook
action filter_type
action find
entity Robin Cook
relation family name
type name
['Robin Cook', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:name . resource:Robin_Cook property:family_name ?n }
[]
name
Q2671214
SYSTEM
Cook
Q2671214
(Q352059,P734,c(Q82799))
action filter_type
action find
entity Q352059
relation P734
type Q82799
[ANSWER] has the surname Robin [ANSWER]
['Q352059', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q82799 . resource:Q352059 property:P734 ?n }
Cook
Cook has the surname Robin Cook
Cook
action filter_type
action find
entity Robin Cook
relation family name
type name
['Robin Cook', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:name . resource:Robin_Cook property:family_name ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q352059
P735
Q82799
USER
Which name is Robin Cook known by ?
(Q352059,P735,c(Q82799))
action filter_type
action find
entity Q352059
relation P735
type Q82799
['Q352059', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q352059 property:P735 ?w . ?w rdf:type ontology:Q82799 }
Robin Cook
action filter_type
action find
entity Robin Cook
relation given name
type name
['Robin Cook', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Robin_Cook property:given_name ?w . ?w rdf:type ontology:name }
[]
name
Q1158139
SYSTEM
Robin
Q1158139
(Q352059,P735,c(Q82799))
action filter_type
action find
entity Q352059
relation P735
type Q82799
[ANSWER] Cook is known as [ANSWER]
['Q352059', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q352059 property:P735 ?w . ?w rdf:type ontology:Q82799 }
Robin
Robin Cook is known as Robin
Robin
action filter_type
action find
entity Robin Cook
relation given name
type name
['Robin Cook', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Robin_Cook property:given_name ?w . ?w rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q43115
P180
Q82799 Q1792379 Q340169
USER
Which names are depicted in approximately the same number of art genres and medias as saint ?
(c(Q1792379)|c(Q340169),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q43115
relation P180
type Q1792379
type Q340169
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P180 resource:Q43115 . { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:Q340169 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?m = ?s ) . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?t } }
saint
action approx
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
action count
action filter_multi_types
action find_reverse
entity saint
relation depicts
type art genre
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:depicts resource:saint . { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:media ) ( ontology:art_genre ) } } } } . FILTER ( ?m = ?s ) . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?t } }
[]
name art genre media
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1192868 Q9394 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 approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q43115
relation P180
type Q1792379
type Q340169
[ANSWERS] are depicted in approximately the same number of art genres and medias as saint
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P180 resource:Q43115 . { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:Q340169 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?m = ?s ) . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?t } }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale clam rabbit 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 depicted in approximately the same number of art genres and medias as saint
leek magi fish
action approx
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
action count
action filter_multi_types
action find_reverse
entity saint
relation depicts
type art genre
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:depicts resource:saint . { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:media ) ( ontology:art_genre ) } } } } . FILTER ( ?m = ?s ) . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?t } }
[]