Simple Question (Direct)
Simple Question
Q5742656
P102
Q7210356
USER
Which party does Lennart Fremling belong to ?
(Q5742656,P102,c(Q7210356))
action filter_type
action find
entity Q5742656
relation P102
type Q7210356
['Q5742656', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q5742656 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Lennart Fremling
action filter_type
action find
entity Lennart Fremling
relation member of political party
type political organization
['Lennart Fremling', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Lennart_Fremling property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
political organization
Q110857
SYSTEM
Liberal People's Party
Q110857
(Q5742656,P102,c(Q7210356))
action filter_type
action find
entity Q5742656
relation P102
type Q7210356
Lennart Fremling belongs to [ANSWER]
['Q5742656', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q5742656 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Liberal People's Party
Lennart Fremling belongs to Liberal People's Party
Liberal People's Party
action filter_type
action find
entity Lennart Fremling
relation member of political party
type political organization
['Lennart Fremling', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Lennart_Fremling property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5742656
P21
Q290
USER
Which sex does that person belong to ?
(Q110857,P21,c(Q290))
action filter_type
action find
entity Q5742656
relation P21
type Q290
['Q110857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q5742656 property:P21 ?o . ?o rdf:type ontology:Q290 }
Lennart Fremling
action filter_type
action find
entity Lennart Fremling
relation gender
type sex
["Liberal People's Party", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Lennart_Fremling property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q110857,P21,c(Q290))
action filter_type
action find
entity Q5742656
relation P21
type Q290
That person belongs to [ANSWER]
['Q110857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q5742656 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Lennart Fremling
relation gender
type sex
["Liberal People's Party", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Lennart_Fremling property:gender ?o . ?o rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P110
Q502895 Q26971562 Q2342494
USER
Which people illustrated max number of comic formats and collectables ?
(c(Q26971562)|c(Q2342494),P110,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
[[{'concept': 'Q26971562'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:Q26971562 ) ( ontology:Q2342494 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?g WHERE { { ?u property:P110 ?g . ?g rdf:type ontology:Q502895 . ?u rdf:type ontology:Q26971562 } UNION { ?g rdf:type ontology:Q502895 . ?u rdf:type ontology:Q2342494 . ?u property:P110 ?g } } GROUP BY ?g } . FILTER ( ?x = ?k ) }
action argmax
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
[[{'concept': 'comic format'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:comic_format ) ( ontology:collectable ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?g WHERE { { ?u property:illustrator ?g . ?g rdf:type ontology:common_name . ?u rdf:type ontology:comic_format } UNION { ?g rdf:type ontology:common_name . ?u rdf:type ontology:collectable . ?u property:illustrator ?g } } GROUP BY ?g } . FILTER ( ?x = ?k ) }
[]
common name comic format collectable
Q2831042
SYSTEM
Albert Chazelle
Q2831042
(c(Q26971562)|c(Q2342494),P110,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q2342494
[ANSWER] illustrated max number of comic formats and collectables
[[{'concept': 'Q26971562'}, {'concept': 'Q2342494'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:Q26971562 ) ( ontology:Q2342494 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?g WHERE { { ?u property:P110 ?g . ?g rdf:type ontology:Q502895 . ?u rdf:type ontology:Q26971562 } UNION { ?g rdf:type ontology:Q502895 . ?u rdf:type ontology:Q2342494 . ?u property:P110 ?g } } GROUP BY ?g } . FILTER ( ?x = ?k ) }
Albert Chazelle
Albert Chazelle illustrated max number of comic formats and collectables
Albert Chazelle
action argmax
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type collectable
[[{'concept': 'comic format'}, {'concept': 'collectable'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) ?e WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:comic_format ) ( ontology:collectable ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) ?g WHERE { { ?u property:illustrator ?g . ?g rdf:type ontology:common_name . ?u rdf:type ontology:comic_format } UNION { ?g rdf:type ontology:common_name . ?u rdf:type ontology:collectable . ?u property:illustrator ?g } } GROUP BY ?g } . FILTER ( ?x = ?k ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2831042 Q101566 Q567514
P27
Q15617994
USER
Is that person a citizen of Schilpario and Sinspelt ?
(Q2831042,P27,Q101566) (Q2831042,P27,Q567514)
action is_in
entity Q2831042
action intersection
action find_reverse
entity Q101566
relation P27
action find_reverse
entity Q567514
relation P27
['Q2831042', 'P27', 'Q101566'] ['Q2831042', 'P27', 'Q567514']
ASK WHERE { resource:Q2831042 property:P27 resource:Q101566 . resource:Q2831042 property:P27 resource:Q567514 }
Albert Chazelle Schilpario Sinspelt
action is_in
entity Albert Chazelle
action intersection
action find_reverse
entity Schilpario
relation country of citizenship
action find_reverse
entity Sinspelt
relation country of citizenship
['Albert Chazelle', 'country of citizenship', 'Schilpario'] ['Albert Chazelle', 'country of citizenship', 'Sinspelt']
ASK WHERE { resource:Albert_Chazelle property:country_of_citizenship resource:Schilpario . resource:Albert_Chazelle property:country_of_citizenship resource:Sinspelt }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2831042,P27,Q101566) (Q2831042,P27,Q567514)
action is_in
entity Q2831042
action intersection
action find_reverse
entity Q101566
relation P27
action find_reverse
entity Q567514
relation P27
[ANSWER]
['Q2831042', 'P27', 'Q101566'] ['Q2831042', 'P27', 'Q567514']
ASK WHERE { resource:Q2831042 property:P27 resource:Q101566 . resource:Q2831042 property:P27 resource:Q567514 }
No
action is_in
entity Albert Chazelle
action intersection
action find_reverse
entity Schilpario
relation country of citizenship
action find_reverse
entity Sinspelt
relation country of citizenship
['Albert Chazelle', 'country of citizenship', 'Schilpario'] ['Albert Chazelle', 'country of citizenship', 'Sinspelt']
ASK WHERE { resource:Albert_Chazelle property:country_of_citizenship resource:Schilpario . resource:Albert_Chazelle property:country_of_citizenship resource:Sinspelt }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5742656 Q34
P27
Q15617994
USER
Is Lennart Fremling an inhabitant of Sweden ?
(Q5742656,P27,Q34)
action is_in
entity Q34
action find
entity Q5742656
relation P27
['Q5742656', 'P27', 'Q34']
ASK WHERE { resource:Q5742656 property:P27 resource:Q34 }
Lennart Fremling Sweden
action is_in
entity Sweden
action find
entity Lennart Fremling
relation country of citizenship
['Lennart Fremling', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Lennart_Fremling property:country_of_citizenship resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q5742656,P27,Q34)
action is_in
entity Q34
action find
entity Q5742656
relation P27
[ANSWER]
['Q5742656', 'P27', 'Q34']
ASK WHERE { resource:Q5742656 property:P27 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Lennart Fremling
relation country of citizenship
['Lennart Fremling', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Lennart_Fremling property:country_of_citizenship resource:Sweden }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q8261 Q2831042
P136 P110
Q2342494
USER
Which collectables were described by Albert Chazelle and as novel as their class ?
AND((c(Q2342494),P110,Q2831042), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q2831042
relation P110
action find_reverse
entity Q8261
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P110', 'Q2831042'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?d WHERE { ?d property:P110 resource:Q2831042 . ?d property:P136 resource:Q8261 . ?d rdf:type ontology:Q2342494 }
novel Albert Chazelle
action filter_type
action intersection
action find_reverse
entity Albert Chazelle
relation illustrator
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'illustrator', 'Albert Chazelle'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?d WHERE { ?d property:illustrator resource:Albert_Chazelle . ?d property:genre resource:novel . ?d rdf:type ontology:collectable }
[]
collectable
Q2836721 Q3814670 Q7759061 Q7739000 Q7726502 Q7723545 Q3794610 Q7752196 Q7752910 Q2836717
SYSTEM
Some of them are The Secret of Red Gate Farm, The Mystery of the Ivory Charm, The Quest of the Missing Map, The Haunted Bridge, The Clue of the Velvet Mask, The Clue of the Black Keys, The Clue of the Broken Locket, The Moonstone Castle Mystery, The Mystery of the Fire Dragon, The Sign of the Twisted Candles
Q7726502 Q7726504 Q7728149 Q7759061 Q7752904 Q7739025 Q7765842 Q7752910 Q7723545 Q7723544 Q7723542 Q2836695 Q2836694 Q2836696 Q7760816 Q7752878 Q7751136 Q7726508 Q2836717 Q7736318 Q7739568 Q2836719 Q3793676 Q7763163 Q7763121 Q7774440 Q7752900 Q7723550 Q7723538 Q7723539 Q7762452 Q7756854 Q8199988 Q3794610 Q7752847 Q2836721 Q2836720 Q7775282 Q3412860 Q7752196 Q3814670 Q7739000
AND((c(Q2342494),P110,Q2831042), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q2831042
relation P110
action find_reverse
entity Q8261
relation P136
type Q2342494
[ANSWERS] were described by Albert Chazelle and as novel as their class
{'AND': [[{'concept': 'Q2342494'}, 'P110', 'Q2831042'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?d WHERE { ?d property:P110 resource:Q2831042 . ?d property:P136 resource:Q8261 . ?d rdf:type ontology:Q2342494 }
The Clue of the Velvet Mask The Clue of the Whistling Bagpipes The Crooked Banister The Quest of the Missing Map The Mystery of the Brass Bound Trunk The Haunted Showboat The Spider Sapphire Mystery The Mystery of the Fire Dragon The Clue of the Black Keys The Clue in the Old Stagecoach The Clue in the Jewel Box The Hidden Staircase The Bungalow Mystery The Secret at Shadow Ranch The Ringmaster's Secret The Mystery at the Ski Jump The Message in the Hollow Oak The Clue of the Tapping Heels The Sign of the Twisted Candles The Ghost of Blackwood Hall The Hidden Window Mystery The Mystery of the Tolling Bell The Password to Larkspur Lane The Secret of the Golden Pavilion The Secret in the Old Attic The Whispering Statue The Mystery of the 99 Steps The Clue of the Leaning Chimney The Clue in the Crossword Cipher The Clue in the Crumbling Wall The Scarlet Slipper Mystery The Phantom of Pine Hill The Clue in the Diary The Clue of the Broken Locket The Mysterious Mannequin The Secret of Red Gate Farm The Mystery at Lilac Inn The Witch Tree Symbol Nancy's Mysterious Letter The Moonstone Castle Mystery The Mystery of the Ivory Charm The Haunted Bridge
The Secret of Red Gate Farm, The Mystery of the Ivory Charm, The Quest of the Missing Map, The Haunted Bridge, The Clue of the Velvet Mask, The Clue of the Black Keys, The Clue of the Broken Locket, The Moonstone Castle Mystery, The Mystery of the Fire Dragon and The Sign of the Twisted Candles were described by Albert Chazelle and as novel as their class
The Secret of Red Gate Farm The Mystery of the Ivory Charm The Quest of the Missing Map The Haunted Bridge The Clue of the Velvet Mask The Clue of the Black Keys The Clue of the Broken Locket The Moonstone Castle Mystery The Mystery of the Fire Dragon The Sign of the Twisted Candles
action filter_type
action intersection
action find_reverse
entity Albert Chazelle
relation illustrator
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'illustrator', 'Albert Chazelle'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?d WHERE { ?d property:illustrator resource:Albert_Chazelle . ?d property:genre resource:novel . ?d rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q24849509 Q2836717
P364
Q34770
USER
Which languages are the original languages of creation of The Sign of the Twisted Candles and Exercise and people with serious, persistent mental illness ?
AND((Q2836717,P364,c(Q34770)), (Q24849509,P364,c(Q34770)))
action filter_type
action intersection
action find
entity Q2836717
relation P364
action find
entity Q24849509
relation P364
type Q34770
{'AND': [['Q2836717', 'P364', {'concept': 'Q34770'}], ['Q24849509', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?d WHERE { resource:Q2836717 property:P364 ?d . resource:Q24849509 property:P364 ?d . ?d rdf:type ontology:Q34770 }
Exercise and people with serious, persistent mental illness The Sign of the Twisted Candles
action filter_type
action intersection
action find
entity The Sign of the Twisted Candles
relation original language of work
action find
entity Exercise and people with serious, persistent mental illness
relation original language of work
type language
{'AND': [['The Sign of the Twisted Candles', 'original language of work', {'concept': 'language'}], ['Exercise and people with serious, persistent mental illness', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?d WHERE { resource:The_Sign_of_the_Twisted_Candles property:original_language_of_work ?d . resource:Exercise_and_people_with_serious,_persistent_mental_illness property:original_language_of_work ?d . ?d rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q2836717,P364,c(Q34770)), (Q24849509,P364,c(Q34770)))
action filter_type
action intersection
action find
entity Q2836717
relation P364
action find
entity Q24849509
relation P364
type Q34770
[ANSWER] is the original languages of creation of The Sign of the Twisted Candles and Exercise and people with serious, persistent mental illness
{'AND': [['Q2836717', 'P364', {'concept': 'Q34770'}], ['Q24849509', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?d WHERE { resource:Q2836717 property:P364 ?d . resource:Q24849509 property:P364 ?d . ?d rdf:type ontology:Q34770 }
English
English is the original languages of creation of The Sign of the Twisted Candles and Exercise and people with serious, persistent mental illness
English
action filter_type
action intersection
action find
entity The Sign of the Twisted Candles
relation original language of work
action find
entity Exercise and people with serious, persistent mental illness
relation original language of work
type language
{'AND': [['The Sign of the Twisted Candles', 'original language of work', {'concept': 'language'}], ['Exercise and people with serious, persistent mental illness', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?d WHERE { resource:The_Sign_of_the_Twisted_Candles property:original_language_of_work ?d . resource:Exercise_and_people_with_serious,_persistent_mental_illness property:original_language_of_work ?d . ?d rdf:type ontology:language }
[]