Simple Question (Direct)
Simple Question
Q3270480
P40
Q502895
USER
Which person is a child of Léo Hamon ?
(Q3270480,P40,c(Q502895))
action filter_type
action find
entity Q3270480
relation P40
type Q502895
['Q3270480', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q3270480 property:P40 ?g }
Léo Hamon
action filter_type
action find
entity Léo Hamon
relation child
type common name
['Léo Hamon', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Léo_Hamon property:child ?g }
[]
common name
Q3265770
SYSTEM
Lucienne Hamon
Q3265770
(Q3270480,P40,c(Q502895))
action filter_type
action find
entity Q3270480
relation P40
type Q502895
De [ANSWER] is a child of Léo Hamon
['Q3270480', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q3270480 property:P40 ?g }
Lucienne Hamon
De Lucienne Hamon is a child of Léo Hamon
Lucienne Hamon
action filter_type
action find
entity Léo Hamon
relation child
type common name
['Léo Hamon', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Léo_Hamon property:child ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3270480
P21
Q290
USER
What is the sex of Léo Hamon ?
(Q3270480,P21,c(Q290))
action filter_type
action find
entity Q3270480
relation P21
type Q290
['Q3270480', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q3270480 property:P21 ?d }
Léo Hamon
action filter_type
action find
entity Léo Hamon
relation gender
type sex
['Léo Hamon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Léo_Hamon property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3270480,P21,c(Q290))
action filter_type
action find
entity Q3270480
relation P21
type Q290
The sex of Léo Hamon is the [ANSWER]
['Q3270480', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q3270480 property:P21 ?d }
male
The sex of Léo Hamon is the male
male
action filter_type
action find
entity Léo Hamon
relation gender
type sex
['Léo Hamon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Léo_Hamon property:gender ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3265770
P161
Q838948
USER
How many works of art have Lucienne Hamon as actor ?
(c(Q838948),P161,Q3265770)
action count
action filter_type
action find_reverse
entity Q3265770
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q3265770']
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f rdf:type ontology:Q838948 . ?f property:P161 resource:Q3265770 }
Lucienne Hamon
action count
action filter_type
action find_reverse
entity Lucienne Hamon
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Lucienne Hamon']
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f rdf:type ontology:work_of_art . ?f property:cast_member resource:Lucienne_Hamon }
[]
work of art
SYSTEM
3
Q2183011 Q2922080 Q3210458
(c(Q838948),P161,Q3265770)
action count
action filter_type
action find_reverse
entity Q3265770
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q3265770']
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f rdf:type ontology:Q838948 . ?f property:P161 resource:Q3265770 }
I Want to Go Home Boulevard du Rhum Sachs' Disease
3
action count
action filter_type
action find_reverse
entity Lucienne Hamon
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Lucienne Hamon']
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { ?f rdf:type ontology:work_of_art . ?f property:cast_member resource:Lucienne_Hamon }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3265770
P22
Q502895
USER
Who was the dad of that one ?
action filter_type
action find
entity Q3265770
relation P22
type Q502895
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q3265770 property:P22 ?a }
Lucienne Hamon
action filter_type
action find
entity Lucienne Hamon
relation father
type common name
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Lucienne_Hamon property:father ?a }
[]
common name
Q3270480
SYSTEM
Léo Hamon
Q3270480
action filter_type
action find
entity Q3265770
relation P22
type Q502895
The dad of that one was the [ANSWER]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q3265770 property:P22 ?a }
Léo Hamon
The dad of that one was the Léo Hamon
Léo Hamon
action filter_type
action find
entity Lucienne Hamon
relation father
type common name
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Lucienne_Hamon property:father ?a }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q150 Q3270480
P103 P22
Q502895
USER
Which people are the offspring of Léo Hamon and speaks French as his/her mother tongue ?
AND((c(Q502895),P22,Q3270480), (c(Q502895),P103,Q150))
action filter_type
action intersection
action find_reverse
entity Q3270480
relation P22
action find_reverse
entity Q150
relation P103
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3270480'], [{'concept': 'Q502895'}, 'P103', 'Q150']]}
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q3270480 . ?m property:P103 resource:Q150 . ?m rdf:type ontology:Q502895 }
French Léo Hamon
action filter_type
action intersection
action find_reverse
entity Léo Hamon
relation father
action find_reverse
entity French
relation native language
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Léo Hamon'], [{'concept': 'common name'}, 'native language', 'French']]}
SELECT DISTINCT ?m WHERE { ?m property:father resource:Léo_Hamon . ?m property:native_language resource:French . ?m rdf:type ontology:common_name }
[]
common name
Q3265770
SYSTEM
Lucienne Hamon
Q3265770
AND((c(Q502895),P22,Q3270480), (c(Q502895),P103,Q150))
action filter_type
action intersection
action find_reverse
entity Q3270480
relation P22
action find_reverse
entity Q150
relation P103
type Q502895
[ANSWER] is the offspring of Léo Hamon and speaks French as his/her mother tongue
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3270480'], [{'concept': 'Q502895'}, 'P103', 'Q150']]}
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q3270480 . ?m property:P103 resource:Q150 . ?m rdf:type ontology:Q502895 }
Lucienne Hamon
Lucienne Hamon is the offspring of Léo Hamon and speaks French as his/her mother tongue
Lucienne Hamon
action filter_type
action intersection
action find_reverse
entity Léo Hamon
relation father
action find_reverse
entity French
relation native language
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Léo Hamon'], [{'concept': 'common name'}, 'native language', 'French']]}
SELECT DISTINCT ?m WHERE { ?m property:father resource:Léo_Hamon . ?m property:native_language resource:French . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q183 Q3270480
P127 P138
Q79007
USER
Which streets come from Léo Hamon or are owned by Germany ?
OR((c(Q79007),P138,Q3270480), (c(Q79007),P127,Q183))
action filter_type
action union
action find_reverse
entity Q3270480
relation P138
action find_reverse
entity Q183
relation P127
type Q79007
{'OR': [[{'concept': 'Q79007'}, 'P138', 'Q3270480'], [{'concept': 'Q79007'}, 'P127', 'Q183']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P138 resource:Q3270480 } UNION { ?j property:P127 resource:Q183 } } . ?j rdf:type ontology:Q79007 }
Germany Léo Hamon
action filter_type
action union
action find_reverse
entity Léo Hamon
relation named after
action find_reverse
entity Germany
relation owned by
type street
{'OR': [[{'concept': 'street'}, 'named after', 'Léo Hamon'], [{'concept': 'street'}, 'owned by', 'Germany']]}
SELECT DISTINCT ?j WHERE { { { ?j property:named_after resource:Léo_Hamon } UNION { ?j property:owned_by resource:Germany } } . ?j rdf:type ontology:street }
[]
street
Q34498 Q52809 Q52729 Q34536 Q52718 Q52787 Q34520 Q52759 Q52753 Q52731
SYSTEM
Some of them are Bundesstraße 25, Bundesstraße 196, Bundesstraße 81, Bundesstraße 36, Bundesstraße 72, Bundesstraße 175, Bundesstraße 31, Bundesstraße 103, Bundesstraße 97, Bundesstraße 83
Q52780 Q52783 Q52782 Q52784 Q52787 Q52786 Q52789 Q52788 Q34559 Q34556 Q34553 Q52709 Q52708 Q52705 Q52707 Q34495 Q1006769 Q34492 Q34498 Q1007052 Q47979 Q47973 Q1007274 Q34549 Q34548 Q52730 Q52731 Q52732 Q34541 Q52738 Q34546 Q34544 Q21098081 Q1006969 Q1006806 Q1007281 Q1007296 Q52723 Q52722 Q52721 Q52720 Q52727 Q52725 Q52724 Q52729 Q34438 Q1006799 Q34538 Q34536 Q34532 Q34530 Q34507 Q47955 Q34441 Q34446 Q34444 Q47993 Q52756 Q52757 Q52754 Q52755 Q1006941 Q52753 Q52751 Q34525 Q1006786 Q34520 Q52758 Q52759 Q47963 Q47960 Q47968 Q52807 Q34450 Q34452 Q319795 Q34454 Q34456 Q47981 Q47987 Q52745 Q52744 Q52746 Q52741 Q52740 Q52742 Q34513 Q52749 Q52748 Q1007034 Q1006994 Q52805 Q1007137 Q34506 Q34468 Q34502 Q34501 Q34465 Q34462 Q52770 Q52771 Q52772 Q52774 Q52775 Q52776 Q52778 Q52779 Q34478 Q52717 Q34573 Q34571 Q52808 Q52809 Q52806 Q34472 Q52804 Q34522 Q52802 Q34476 Q34459 Q52801 Q34470 Q52769 Q52768 Q52767 Q52766 Q52765 Q52764 Q52763 Q52762 Q52761 Q52760 Q52800 Q52792 Q52793 Q52790 Q52796 Q52797 Q52794 Q52795 Q52798 Q52799 Q1007298 Q34563 Q34566 Q2769393 Q52811 Q52810 Q52812 Q52734 Q52718 Q52712 Q52713 Q52710 Q52711 Q52716 Q52736 Q52715 Q34484 Q34482 Q34480 Q34488 Q34489
OR((c(Q79007),P138,Q3270480), (c(Q79007),P127,Q183))
action filter_type
action union
action find_reverse
entity Q3270480
relation P138
action find_reverse
entity Q183
relation P127
type Q79007
[ANSWERS] come from Léo Hamon or are owned by Germany
{'OR': [[{'concept': 'Q79007'}, 'P138', 'Q3270480'], [{'concept': 'Q79007'}, 'P127', 'Q183']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P138 resource:Q3270480 } UNION { ?j property:P127 resource:Q183 } } . ?j rdf:type ontology:Q79007 }
Bundesstraße 170 Bundesstraße 172 Bundesstraße 171 Bundesstraße 173 Bundesstraße 175 Bundesstraße 174 Bundesstraße 178 Bundesstraße 176 Bundesstraße 45 Bundesstraße 44 Bundesstraße 43 Bundesstraße 64 Bundesstraße 63 Bundesstraße 61 Bundesstraße 62 Bundesstraße 23 Bundesstraße 11a Bundesstraße 22 Bundesstraße 25 Bundesstraße 38a Bundesstraße 56 Bundesstraße 55 Bundesstroß 55a Bundesstraße 42 Bundesstraße 41 Bundesstraße 82 Bundesstraße 83 Bundesstraße 84 Bundesstraße 38 Bundesstraße 87 Bundesstraße 40 Bundesstraße 39 esplanade Léo-Hamon Bundesstraße 27a Bundesstraße 187a Bundesstraße 66n Bundesstraße 96b Bundesstraße 76 Bundesstraße 75 Bundesstraße 74 Bundesstraße 73 Bundesstraße 80 Bundesstraße 79 Bundesstraße 77 Bundesstraße 81 Bundesstraße 1 Bundesstraße 183a Bundesstraße 37 Bundesstraße 36 Bundesstraße 35 Bundesstraße 34 Bundesstraße 29 Bundesstraße 51 Bundesstraße 2 Bundesstraße 4 Bundesstraße 3 Bundesstraße 59 Bundesstraße 100 Bundesstraße 101 Bundesstraße 98 Bundesstraße 99 Bundesstraße 26a Bundesstraße 97 Bundesstraße 96 Bundesstraße 33 Bundesstraße 172a Bundesstraße 31 Bundesstraße 102 Bundesstraße 103 Bundesstraße 53 Bundesstraße 52 Bundesstraße 54 Bundesstraße 194 Bundesstraße 4 R Bundesstraße 5 Bundesstraße 2 R Bundesstraße 6 Bundesstraße 7 Bundesstraße 57 Bundesstraße 58 Bundesstraße 92 Bundesstraße 91 Bundesstraße 93 Bundesstraße 89 Bundesstraße 88 Bundesstraße 90 Bundesstraße 30 Bundesstraße 95 Bundesstraße 94 Bundesstraße 31a Bundesstraße 28a Bundesstraße 192 Bundesstraße 43a Bundesstraße 28 Bundesstraße 11 Bundesstraße 27 Bundesstraße 26 Bundesstraße 10 Bundesstraße 9 Bundesstraße 113 Bundesstraße 122 Bundesstraße 156 Bundesstraße 158 Bundesstraße 166 Bundesstraße 167 Bundesstraße 168 Bundesstraße 169 Bundesstraße 15 Bundesstraße 71 Bundesstraße 50 Bundesstraße 49 Bundesstraße 195 Bundesstraße 196 Bundesstraße 193 Bundesstraße 13 Bundesstraße 191 Bundesstraße 32 Bundesstraße 190 Bundesstraße 14 Bundesstraße 8 Bundesstraße 189 Bundesstraße 12 Bundesstraße 115 Bundesstraße 112 Bundesstraße 111 Bundesstraße 110 Bundesstraße 109 Bundesstraße 108 Bundesstraße 107 Bundesstraße 106 Bundesstraße 105 Bundesstraße 104 Bundesstraße 188 Bundesstraße 180 Bundesstraße 181 Bundesstraße 179 Bundesstraße 184 Bundesstraße 185 Bundesstraße 182 Bundesstraße 183 Bundesstraße 186 Bundesstraße 187 Bundesstraße 96a Bundesstraße 47 Bundesstraße 48 Bundesstraße 33a Bundesstraße 198 Bundesstraße 197 Bundesstraße 199 Bundesstraße 85 Bundesstraße 72 Bundesstraße 67 Bundesstraße 68 Bundesstraße 65 Bundesstraße 66 Bundesstraße 70 Bundesstraße 86 Bundesstraße 69 Bundesstraße 19 Bundesstraße 17 Bundesstraße 16 Bundesstraße 20 Bundesstraße 21
Bundesstraße 25, Bundesstraße 196, Bundesstraße 81, Bundesstraße 36, Bundesstraße 72, Bundesstraße 175, Bundesstraße 31, Bundesstraße 103, Bundesstraße 97 and Bundesstraße 83 come from Léo Hamon or are owned by Germany
Bundesstraße 25 Bundesstraße 196 Bundesstraße 81 Bundesstraße 36 Bundesstraße 72 Bundesstraße 175 Bundesstraße 31 Bundesstraße 103 Bundesstraße 97 Bundesstraße 83
action filter_type
action union
action find_reverse
entity Léo Hamon
relation named after
action find_reverse
entity Germany
relation owned by
type street
{'OR': [[{'concept': 'street'}, 'named after', 'Léo Hamon'], [{'concept': 'street'}, 'owned by', 'Germany']]}
SELECT DISTINCT ?j WHERE { { { ?j property:named_after resource:Léo_Hamon } UNION { ?j property:owned_by resource:Germany } } . ?j rdf:type ontology:street }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q10548447
P559
Q811979 Q79007
USER
How many architectural structures are the endpoints for greater number of streets than Krafts torg ?
(c(Q79007),P559,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P559
type Q811979
type Q79007
action count
action filter_type
action find
entity Q10548447
relation P559
type Q811979
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Q10548447 property:P559 ?l . ?l rdf:type ontology:Q811979 } } . FILTER ( ?j > ?q ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P559 ?a . ?a rdf:type ontology:Q811979 . ?x rdf:type ontology:Q79007 } GROUP BY ?a } }
Krafts torg
action count
action greater
action find_reverse_tuple_counts
relation terminus
type architectural structure
type street
action count
action filter_type
action find
entity Krafts torg
relation terminus
type architectural structure
[{'concept': 'street'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Krafts_torg property:terminus ?l . ?l rdf:type ontology:architectural_structure } } . FILTER ( ?j > ?q ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:terminus ?a . ?a rdf:type ontology:architectural_structure . ?x rdf:type ontology:street } GROUP BY ?a } }
[]
architectural structure street
SYSTEM
5
Q4957678 Q3048023 Q6432431 Q1966521 Q6936733
(c(Q79007),P559,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P559
type Q811979
type Q79007
action count
action filter_type
action find
entity Q10548447
relation P559
type Q811979
[ANSWER]
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Q10548447 property:P559 ?l . ?l rdf:type ontology:Q811979 } } . FILTER ( ?j > ?q ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P559 ?a . ?a rdf:type ontology:Q811979 . ?x rdf:type ontology:Q79007 } GROUP BY ?a } }
Brantingtorget Stortorget Kornhamnstorg place d'Italie Munkbron
5
action count
action greater
action find_reverse_tuple_counts
relation terminus
type architectural structure
type street
action count
action filter_type
action find
entity Krafts torg
relation terminus
type architectural structure
[{'concept': 'street'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Krafts_torg property:terminus ?l . ?l rdf:type ontology:architectural_structure } } . FILTER ( ?j > ?q ) . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:terminus ?a . ?a rdf:type ontology:architectural_structure . ?x rdf:type ontology:street } GROUP BY ?a } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q4566667
P559
Q811979 Q79007
USER
And also tell me about Järntorget?
(c(Q79007),P559,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P559
type Q811979
type Q79007
action count
action filter_type
action find
entity Q4566667
relation P559
type Q811979
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Q4566667 property:P559 ?a . ?a rdf:type ontology:Q811979 } } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:Q79007 . ?t rdf:type ontology:Q811979 . ?f property:P559 ?t } GROUP BY ?t } }
Järntorget
action count
action greater
action find_reverse_tuple_counts
relation terminus
type architectural structure
type street
action count
action filter_type
action find
entity Järntorget
relation terminus
type architectural structure
[{'concept': 'street'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Järntorget property:terminus ?a . ?a rdf:type ontology:architectural_structure } } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:street . ?t rdf:type ontology:architectural_structure . ?f property:terminus ?t } GROUP BY ?t } }
[]
architectural structure street
SYSTEM
5
Q4957678 Q3048023 Q6432431 Q1966521 Q6936733
(c(Q79007),P559,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P559
type Q811979
type Q79007
action count
action filter_type
action find
entity Q4566667
relation P559
type Q811979
[ANSWER]
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Q4566667 property:P559 ?a . ?a rdf:type ontology:Q811979 } } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:Q79007 . ?t rdf:type ontology:Q811979 . ?f property:P559 ?t } GROUP BY ?t } }
Brantingtorget Stortorget Kornhamnstorg place d'Italie Munkbron
5
action count
action greater
action find_reverse_tuple_counts
relation terminus
type architectural structure
type street
action count
action filter_type
action find
entity Järntorget
relation terminus
type architectural structure
[{'concept': 'street'}, 'terminus', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Järntorget property:terminus ?a . ?a rdf:type ontology:architectural_structure } } . FILTER ( ?g > ?q ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?f rdf:type ontology:street . ?t rdf:type ontology:architectural_structure . ?f property:terminus ?t } GROUP BY ?t } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q3270480
P21 P22
Q502895
USER
Which people have Léo Hamon as dad and have the gender as female ?
AND((c(Q502895),P22,Q3270480), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q3270480
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3270480'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q3270480 . ?h property:P21 resource:Q6581072 . ?h rdf:type ontology:Q502895 }
female Léo Hamon
action filter_type
action intersection
action find_reverse
entity Léo Hamon
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Léo Hamon'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?h WHERE { ?h property:father resource:Léo_Hamon . ?h property:gender resource:female . ?h rdf:type ontology:common_name }
[]
common name
Q3265770
SYSTEM
Lucienne Hamon
Q3265770
AND((c(Q502895),P22,Q3270480), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q3270480
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] have Léo Hamon as dad and have the gender as female
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3270480'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q3270480 . ?h property:P21 resource:Q6581072 . ?h rdf:type ontology:Q502895 }
Lucienne Hamon
Lucienne Hamon have Léo Hamon as dad and have the gender as female
Lucienne Hamon
action filter_type
action intersection
action find_reverse
entity Léo Hamon
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Léo Hamon'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?h WHERE { ?h property:father resource:Léo_Hamon . ?h property:gender resource:female . ?h rdf:type ontology:common_name }
[]