Simple Question (Direct)
Simple Question
Q1919018
P21
Q290
USER
What is the sex of Melanie Wald-Fuhrmann ?
(Q1919018,P21,c(Q290))
action filter_type
action find
entity Q1919018
relation P21
type Q290
['Q1919018', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q1919018 property:P21 ?z . ?z rdf:type ontology:Q290 }
Melanie Wald-Fuhrmann
action filter_type
action find
entity Melanie Wald-Fuhrmann
relation gender
type sex
['Melanie Wald-Fuhrmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Melanie_Wald-Fuhrmann property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1919018,P21,c(Q290))
action filter_type
action find
entity Q1919018
relation P21
type Q290
The sex of Melanie Wald-Fuhrmann is the [ANSWER]
['Q1919018', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q1919018 property:P21 ?z . ?z rdf:type ontology:Q290 }
female
The sex of Melanie Wald-Fuhrmann is the female
female
action filter_type
action find
entity Melanie Wald-Fuhrmann
relation gender
type sex
['Melanie Wald-Fuhrmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Melanie_Wald-Fuhrmann property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1919018
P512
Q3412758
USER
What degree or diploma was awarded to that person ?
(Q6581072,P512,c(Q3412758))
action filter_type
action find
entity Q1919018
relation P512
type Q3412758
['Q6581072', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q3412758 . resource:Q1919018 property:P512 ?w }
Melanie Wald-Fuhrmann
action filter_type
action find
entity Melanie Wald-Fuhrmann
relation academic degree
type qualification
['female', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:qualification . resource:Melanie_Wald-Fuhrmann property:academic_degree ?w }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q6581072,P512,c(Q3412758))
action filter_type
action find
entity Q1919018
relation P512
type Q3412758
The [ANSWER] was awarded to that person
['Q6581072', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q3412758 . resource:Q1919018 property:P512 ?w }
doctoral degree
The doctoral degree was awarded to that person
doctoral degree
action filter_type
action find
entity Melanie Wald-Fuhrmann
relation academic degree
type qualification
['female', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:qualification . resource:Melanie_Wald-Fuhrmann property:academic_degree ?w }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q42786
P941
Q502895 Q15850590 Q3305213
USER
How many people were the sources of inspiration for more number of theatrical genres and paintings than Audrey Hepburn ?
(c(Q15850590)|c(Q3305213),P941,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q42786
relation P941
type Q15850590
type Q3305213
[[{'concept': 'Q15850590'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:P941 ?u . ?b rdf:type ontology:Q15850590 . ?u rdf:type ontology:Q502895 } UNION { ?b property:P941 ?u . ?u rdf:type ontology:Q502895 . ?b rdf:type ontology:Q3305213 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:P941 resource:Q42786 . { { ?e rdf:type ontology:Q15850590 } UNION { ?e rdf:type ontology:Q3305213 } } } } . FILTER ( ?w > ?p ) }
Audrey Hepburn
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action count
action filter_multi_types
action find_reverse
entity Audrey Hepburn
relation inspired by
type theatrical genre
type painting
[[{'concept': 'theatrical genre'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:inspired_by ?u . ?b rdf:type ontology:theatrical_genre . ?u rdf:type ontology:common_name } UNION { ?b property:inspired_by ?u . ?u rdf:type ontology:common_name . ?b rdf:type ontology:painting } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:inspired_by resource:Audrey_Hepburn . { { ?e rdf:type ontology:theatrical_genre } UNION { ?e rdf:type ontology:painting } } } } . FILTER ( ?w > ?p ) }
[]
common name theatrical genre painting
SYSTEM
4
Q312502 Q164823 Q3560424 Q123075
(c(Q15850590)|c(Q3305213),P941,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q42786
relation P941
type Q15850590
type Q3305213
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:P941 ?u . ?b rdf:type ontology:Q15850590 . ?u rdf:type ontology:Q502895 } UNION { ?b property:P941 ?u . ?u rdf:type ontology:Q502895 . ?b rdf:type ontology:Q3305213 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:P941 resource:Q42786 . { { ?e rdf:type ontology:Q15850590 } UNION { ?e rdf:type ontology:Q3305213 } } } } . FILTER ( ?w > ?p ) }
Fiorello H. La Guardia Girolamo Savonarola Violet Gordon-Woodhouse Robert Walser
4
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action count
action filter_multi_types
action find_reverse
entity Audrey Hepburn
relation inspired by
type theatrical genre
type painting
[[{'concept': 'theatrical genre'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:inspired_by ?u . ?b rdf:type ontology:theatrical_genre . ?u rdf:type ontology:common_name } UNION { ?b property:inspired_by ?u . ?u rdf:type ontology:common_name . ?b rdf:type ontology:painting } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:inspired_by resource:Audrey_Hepburn . { { ?e rdf:type ontology:theatrical_genre } UNION { ?e rdf:type ontology:painting } } } } . FILTER ( ?w > ?p ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42786
P26
Q502895
USER
Who are the spouse of that one ?
action filter_type
action find
entity Q42786
relation P26
type Q502895
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q42786 property:P26 ?c }
Audrey Hepburn
action filter_type
action find
entity Audrey Hepburn
relation spouse
type common name
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Audrey_Hepburn property:spouse ?c }
[]
common name
Q333475 Q536106
SYSTEM
Mel Ferrer, Andrea Dotti
Q333475 Q536106
action filter_type
action find
entity Q42786
relation P26
type Q502895
The spouse of that one are both [ANSWERS]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q42786 property:P26 ?c }
Mel Ferrer Andrea Dotti
The spouse of that one are both Mel Ferrer and Andrea Dotti
Mel Ferrer Andrea Dotti
action filter_type
action find
entity Audrey Hepburn
relation spouse
type common name
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Audrey_Hepburn property:spouse ?c }
[]