Simple Question (Direct)
Simple Question
Q11909148
P40
Q502895
USER
Which people are children of Bernat Guillem de Montpeller ?
(Q11909148,P40,c(Q502895))
action filter_type
action find
entity Q11909148
relation P40
type Q502895
['Q11909148', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q11909148 property:P40 ?a . ?a rdf:type ontology:Q502895 }
Bernat Guillem de Montpeller
action filter_type
action find
entity Bernat Guillem de Montpeller
relation child
type common name
['Bernat Guillem de Montpeller', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Bernat_Guillem_de_Montpeller property:child ?a . ?a rdf:type ontology:common_name }
[]
common name
Q4890499 Q5643937
SYSTEM
Bernat Guillem d'Entença, Guillem I d'Entença
Q4890499 Q5643937
(Q11909148,P40,c(Q502895))
action filter_type
action find
entity Q11909148
relation P40
type Q502895
[ANSWERS] are children of Bernat Guillem de Montpeller
['Q11909148', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q11909148 property:P40 ?a . ?a rdf:type ontology:Q502895 }
Bernat Guillem d'Entença Guillem I d'Entença
Bernat Guillem d'Entença and Guillem I d'Entença are children of Bernat Guillem de Montpeller
Bernat Guillem d'Entença Guillem I d'Entença
action filter_type
action find
entity Bernat Guillem de Montpeller
relation child
type common name
['Bernat Guillem de Montpeller', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Bernat_Guillem_de_Montpeller property:child ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4890499 Q5643937
P40
Q502895
USER
Who have Bernat Guillem d'Entença and Guillem I d'Entença as an offspring ?
(c(Q502895),P40,Q4890499) (c(Q502895),P40,Q5643937)
action union
action filter_type
action find_reverse
entity Q4890499
relation P40
type Q502895
action filter_type
action find_reverse
entity Q5643937
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q4890499'] [{'concept': 'Q502895'}, 'P40', 'Q5643937']
SELECT DISTINCT ?i WHERE { { ?i property:P40 resource:Q5643937 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P40 resource:Q4890499 . ?i rdf:type ontology:Q502895 } }
Bernat Guillem d'Entença Guillem I d'Entença
action union
action filter_type
action find_reverse
entity Bernat Guillem d'Entença
relation child
type common name
action filter_type
action find_reverse
entity Guillem I d'Entença
relation child
type common name
[{'concept': 'common name'}, 'child', "Bernat Guillem d'Entença"] [{'concept': 'common name'}, 'child', "Guillem I d'Entença"]
SELECT DISTINCT ?i WHERE { { ?i property:child resource:Guillem_I_d'Entença . ?i rdf:type ontology:common_name } UNION { ?i property:child resource:Bernat_Guillem_d'Entença . ?i rdf:type ontology:common_name } }
[]
common name
Q11909148
SYSTEM
Bernat Guillem de Montpeller
Q11909148
(c(Q502895),P40,Q4890499) (c(Q502895),P40,Q5643937)
action union
action filter_type
action find_reverse
entity Q4890499
relation P40
type Q502895
action filter_type
action find_reverse
entity Q5643937
relation P40
type Q502895
[ANSWER] have Bernat Guillem d'Entença and Guillem I d'Entença as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q4890499'] [{'concept': 'Q502895'}, 'P40', 'Q5643937']
SELECT DISTINCT ?i WHERE { { ?i property:P40 resource:Q5643937 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P40 resource:Q4890499 . ?i rdf:type ontology:Q502895 } }
Bernat Guillem de Montpeller
Bernat Guillem de Montpeller have Bernat Guillem d'Entença and Guillem I d'Entença as an offspring
Bernat Guillem de Montpeller
action union
action filter_type
action find_reverse
entity Bernat Guillem d'Entença
relation child
type common name
action filter_type
action find_reverse
entity Guillem I d'Entença
relation child
type common name
[{'concept': 'common name'}, 'child', "Bernat Guillem d'Entença"] [{'concept': 'common name'}, 'child', "Guillem I d'Entença"]
SELECT DISTINCT ?i WHERE { { ?i property:child resource:Guillem_I_d'Entença . ?i rdf:type ontology:common_name } UNION { ?i property:child resource:Bernat_Guillem_d'Entença . ?i rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11909148
P22
Q502895
USER
Which people have that one as father ?
(c(Q502895),P22,Q11909148)
action filter_type
action find_reverse
entity Q11909148
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q11909148']
SELECT DISTINCT ?z WHERE { ?z property:P22 resource:Q11909148 . ?z rdf:type ontology:Q502895 }
Bernat Guillem de Montpeller
action filter_type
action find_reverse
entity Bernat Guillem de Montpeller
relation father
type common name
[{'concept': 'common name'}, 'father', 'Bernat Guillem de Montpeller']
SELECT DISTINCT ?z WHERE { ?z property:father resource:Bernat_Guillem_de_Montpeller . ?z rdf:type ontology:common_name }
[]
common name
Q4890499 Q5643937
SYSTEM
Bernat Guillem d'Entença, Guillem I d'Entença
Q4890499 Q5643937
(c(Q502895),P22,Q11909148)
action filter_type
action find_reverse
entity Q11909148
relation P22
type Q502895
[ANSWERS] have that one as father
[{'concept': 'Q502895'}, 'P22', 'Q11909148']
SELECT DISTINCT ?z WHERE { ?z property:P22 resource:Q11909148 . ?z rdf:type ontology:Q502895 }
Bernat Guillem d'Entença Guillem I d'Entença
Bernat Guillem d'Entença and Guillem I d'Entença have that one as father
Bernat Guillem d'Entença Guillem I d'Entença
action filter_type
action find_reverse
entity Bernat Guillem de Montpeller
relation father
type common name
[{'concept': 'common name'}, 'father', 'Bernat Guillem de Montpeller']
SELECT DISTINCT ?z WHERE { ?z property:father resource:Bernat_Guillem_de_Montpeller . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
Which collectables did approximately 3 people do the dubbing for ?
(c(Q2342494),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 3
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?z ) WHERE { ?n property:P725 ?w . ?n rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?z = 3 ) }
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 3
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?z ) WHERE { ?n property:voice_actor ?w . ?n rdf:type ontology:collectable . ?w rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?z = 3 ) }
[]
common name collectable
Q482870 Q483263 Q485958
SYSTEM
Boku wa Tomodachi ga Sukunai, Baka and Test, Ro-Kyu-Bu!
Q50035 Q483263 Q482870 Q1204015 Q485958 Q5647726
(c(Q2342494),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 3
Approximately 3 people did the dubbing for [ANSWERS]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?z ) WHERE { ?n property:P725 ?w . ?n rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?z = 3 ) }
Nyaruko: Crawling with Love Baka and Test Boku wa Tomodachi ga Sukunai Ōkami Kakushi Ro-Kyu-Bu! Handy Manny's Motorcycle Adventure
Approximately 3 people did the dubbing for Boku wa Tomodachi ga Sukunai, Baka and Test and Ro-Kyu-Bu!
Boku wa Tomodachi ga Sukunai Baka and Test Ro-Kyu-Bu!
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 3
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?z ) WHERE { ?n property:voice_actor ?w . ?n rdf:type ontology:collectable . ?w rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?z = 3 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1441
Q2342494 Q3895768
USER
Which fictional locations are from the works of max number of collectables ?
(c(Q3895768),P1441,c(Q2342494))
action argmax
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?q ) WHERE { ?m property:P1441 ?a . ?m rdf:type ontology:Q3895768 . ?a rdf:type ontology:Q2342494 } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { ?w property:P1441 ?g . ?g rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q3895768 } GROUP BY ?w } . FILTER ( ?z = ?v ) }
action argmax
action find_tuple_counts
relation present in work
type fictional location
type collectable
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?q ) WHERE { ?m property:present_in_work ?a . ?m rdf:type ontology:fictional_location . ?a rdf:type ontology:collectable } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { ?w property:present_in_work ?g . ?g rdf:type ontology:collectable . ?w rdf:type ontology:fictional_location } GROUP BY ?w } . FILTER ( ?z = ?v ) }
[]
collectable fictional location
Q2997950
SYSTEM
Waterdeep
Q2997950
(c(Q3895768),P1441,c(Q2342494))
action argmax
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
[ANSWER] is from the works of max number of collectables
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?q ) WHERE { ?m property:P1441 ?a . ?m rdf:type ontology:Q3895768 . ?a rdf:type ontology:Q2342494 } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { ?w property:P1441 ?g . ?g rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q3895768 } GROUP BY ?w } . FILTER ( ?z = ?v ) }
Waterdeep
Waterdeep is from the works of max number of collectables
Waterdeep
action argmax
action find_tuple_counts
relation present in work
type fictional location
type collectable
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?q ) WHERE { ?m property:present_in_work ?a . ?m rdf:type ontology:fictional_location . ?a rdf:type ontology:collectable } GROUP BY ?m } } . { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?z ) WHERE { ?w property:present_in_work ?g . ?g rdf:type ontology:collectable . ?w rdf:type ontology:fictional_location } GROUP BY ?w } . FILTER ( ?z = ?v ) }
[]